Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
abfbe808
Commit
abfbe808
authored
Aug 10, 2016
by
Nirbhay Choubey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MW-292: Fix test case
Also backported missing test include files.
parent
dfadb368
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
3 deletions
+21
-3
mysql-test/include/galera_clear_sync_point.inc
mysql-test/include/galera_clear_sync_point.inc
+1
-0
mysql-test/include/galera_set_sync_point.inc
mysql-test/include/galera_set_sync_point.inc
+1
-0
mysql-test/include/galera_signal_sync_point.inc
mysql-test/include/galera_signal_sync_point.inc
+1
-0
mysql-test/include/galera_wait_sync_point.inc
mysql-test/include/galera_wait_sync_point.inc
+6
-0
mysql-test/suite/galera/include/galera_have_debug_sync.inc
mysql-test/suite/galera/include/galera_have_debug_sync.inc
+9
-0
mysql-test/suite/galera/t/MW-292.test
mysql-test/suite/galera/t/MW-292.test
+3
-3
No files found.
mysql-test/include/galera_clear_sync_point.inc
0 → 100644
View file @
abfbe808
SET
GLOBAL
wsrep_provider_options
=
'dbug='
;
mysql-test/include/galera_set_sync_point.inc
0 → 100644
View file @
abfbe808
--
eval
SET
GLOBAL
wsrep_provider_options
=
'dbug=d,$galera_sync_point'
mysql-test/include/galera_signal_sync_point.inc
0 → 100644
View file @
abfbe808
--
eval
SET
GLOBAL
wsrep_provider_options
=
'signal=$galera_sync_point'
mysql-test/include/galera_wait_sync_point.inc
0 → 100644
View file @
abfbe808
--
let
$wait_timeout
=
10
--
let
$wsrep_on_orig
=
`SELECT @@wsrep_on`
SET
SESSION
wsrep_on
=
0
;
--
let
$wait_condition
=
SELECT
1
FROM
INFORMATION_SCHEMA
.
GLOBAL_STATUS
WHERE
VARIABLE_NAME
=
'wsrep_debug_sync_waiters'
AND
VARIABLE_VALUE
=
'$galera_sync_point'
--
source
include
/
wait_condition
.
inc
--
eval
SET
SESSION
wsrep_on
=
$wsrep_on_orig
mysql-test/suite/galera/include/galera_have_debug_sync.inc
0 → 100644
View file @
abfbe808
--
disable_query_log
--
let
$galera_have_debug_sync
=
`SELECT 1 FROM INFORMATION_SCHEMA.GLOBAL_STATUS WHERE VARIABLE_NAME = 'wsrep_debug_sync_waiters'`
--
if
(
!
$galera_have_debug_sync
)
{
--
skip
"Test requires Galera debug library with debug_sync functionality"
}
--
enable_query_log
mysql-test/suite/galera/t/MW-292.test
View file @
abfbe808
...
...
@@ -44,11 +44,11 @@ UPDATE t1 SET f2 = 'c' WHERE f1 = 2;
# Wait for both transactions to be blocked
--
connection
node_1a
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'System lock
'
;
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
LIKE
'Update_rows_log_event::find_row%
'
;
--
source
include
/
wait_condition
.
inc
--
let
$wait_condition
=
SELECT
COUNT
(
*
)
=
1
FROM
INFORMATION_SCHEMA
.
PROCESSLIST
WHERE
STATE
=
'init'
AND
INFO
=
'COMMIT'
;
--
source
include
/
wait_condition
.
inc
#
--let $wait_condition = SELECT COUNT(*) = 1 FROM INFORMATION_SCHEMA.PROCESSLIST WHERE STATE = 'init' AND INFO = 'COMMIT';
#
--source include/wait_condition.inc
# Unblock the commit
--
connection
node_1a
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment