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
e8abf51d
Commit
e8abf51d
authored
Sep 19, 2006
by
mskold/marty@mysql.com/linux.site
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #18679 rpl_ndb_dd_advance.test fails randomly
parent
d1fd23b1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
40 deletions
+90
-40
client/mysqltest.c
client/mysqltest.c
+90
-39
mysql-test/t/disabled.def
mysql-test/t/disabled.def
+0
-1
No files found.
client/mysqltest.c
View file @
e8abf51d
...
@@ -1625,16 +1625,25 @@ int do_save_master_pos()
...
@@ -1625,16 +1625,25 @@ int do_save_master_pos()
if
(
have_ndbcluster
)
if
(
have_ndbcluster
)
{
{
ulonglong
epoch
=
0
,
tmp_epoch
=
0
;
ulonglong
start_epoch
=
0
,
applied_epoch
=
0
,
latest_epoch
=
0
,
latest_trans_epoch
=
0
,
latest_handled_binlog_epoch
=
0
,
latest_received_binlog_epoch
=
0
,
latest_applied_binlog_epoch
=
0
;
int
count
=
0
;
int
count
=
0
;
int
do_continue
=
1
;
int
do_continue
=
1
;
while
(
do_continue
)
while
(
do_continue
)
{
{
const
char
binlog
[]
=
"binlog"
;
const
char
binlog
[]
=
"binlog"
;
const
char
latest_trans_epoch
[]
=
const
char
latest_epoch_str
[]
=
"latest_epoch="
;
const
char
latest_trans_epoch_str
[]
=
"latest_trans_epoch="
;
"latest_trans_epoch="
;
const
char
latest_handled_binlog_epoch
[]
=
const
char
latest_received_binlog_epoch_str
[]
=
"latest_received_binlog_epoch"
;
const
char
latest_handled_binlog_epoch_str
[]
=
"latest_handled_binlog_epoch="
;
"latest_handled_binlog_epoch="
;
const
char
latest_applied_binlog_epoch_str
[]
=
"latest_applied_binlog_epoch="
;
if
(
count
)
if
(
count
)
sleep
(
1
);
sleep
(
1
);
if
(
mysql_query
(
mysql
,
query
=
"show engine ndb status"
))
if
(
mysql_query
(
mysql
,
query
=
"show engine ndb status"
))
...
@@ -1648,45 +1657,87 @@ int do_save_master_pos()
...
@@ -1648,45 +1657,87 @@ int do_save_master_pos()
if
(
strcmp
(
row
[
1
],
binlog
)
==
0
)
if
(
strcmp
(
row
[
1
],
binlog
)
==
0
)
{
{
const
char
*
status
=
row
[
2
];
const
char
*
status
=
row
[
2
];
/* latest_trans_epoch */
if
(
count
==
0
)
// latest_epoch
{
while
(
*
status
&&
strncmp
(
status
,
latest_epoch_str
,
while
(
*
status
&&
strncmp
(
status
,
latest_trans_epoch
,
sizeof
(
latest_epoch_str
)
-
1
))
sizeof
(
latest_trans_epoch
)
-
1
))
status
++
;
status
++
;
if
(
*
status
)
if
(
*
status
)
{
status
+=
sizeof
(
latest_trans_epoch
)
-
1
;
epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_trans_epoch
,
query
);
}
/* latest_applied_binlog_epoch */
while
(
*
status
&&
strncmp
(
status
,
latest_handled_binlog_epoch
,
sizeof
(
latest_handled_binlog_epoch
)
-
1
))
status
++
;
if
(
*
status
)
{
{
status
+=
sizeof
(
latest_handled_binlog_epoch
)
-
1
;
status
+=
sizeof
(
latest_epoch_str
)
-
1
;
tmp_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
latest_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
}
else
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_handled_binlog_epoch
,
query
);
start_lineno
,
latest_epoch_str
,
query
);
break
;
// latest_trans_epoch
}
while
(
*
status
&&
strncmp
(
status
,
latest_trans_epoch_str
,
}
sizeof
(
latest_trans_epoch_str
)
-
1
))
if
(
!
row
)
status
++
;
die
(
"line %u: result does not contain '%s' in '%s'"
,
if
(
*
status
)
start_lineno
,
binlog
,
query
);
{
count
++
;
status
+=
sizeof
(
latest_trans_epoch_str
)
-
1
;
if
(
tmp_epoch
>=
epoch
)
latest_trans_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_trans_epoch_str
,
query
);
/* latest_received_binlog_epoch */
while
(
*
status
&&
strncmp
(
status
,
latest_received_binlog_epoch_str
,
sizeof
(
latest_received_binlog_epoch_str
)
-
1
))
status
++
;
if
(
*
status
)
{
status
+=
sizeof
(
latest_received_binlog_epoch_str
)
-
1
;
latest_received_binlog_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_received_binlog_epoch_str
,
query
);
/* latest_handled_binlog */
while
(
*
status
&&
strncmp
(
status
,
latest_handled_binlog_epoch_str
,
sizeof
(
latest_handled_binlog_epoch_str
)
-
1
))
status
++
;
if
(
*
status
)
{
status
+=
sizeof
(
latest_handled_binlog_epoch_str
)
-
1
;
latest_handled_binlog_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_handled_binlog_epoch_str
,
query
);
/* latest_applied_binlog_epoch */
while
(
*
status
&&
strncmp
(
status
,
latest_applied_binlog_epoch_str
,
sizeof
(
latest_applied_binlog_epoch_str
)
-
1
))
status
++
;
if
(
*
status
)
{
status
+=
sizeof
(
latest_applied_binlog_epoch_str
)
-
1
;
latest_applied_binlog_epoch
=
strtoull
(
status
,
(
char
**
)
0
,
10
);
}
else
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
latest_applied_binlog_epoch_str
,
query
);
if
(
count
==
0
)
start_epoch
=
latest_trans_epoch
;
break
;
}
}
if
(
!
row
)
die
(
"line %u: result does not contain '%s' in '%s'"
,
start_lineno
,
binlog
,
query
);
if
(
latest_applied_binlog_epoch
>
applied_epoch
)
count
=
0
;
applied_epoch
=
latest_applied_binlog_epoch
;
count
++
;
if
(
latest_handled_binlog_epoch
>=
start_epoch
)
do_continue
=
0
;
do_continue
=
0
;
else
if
(
count
>
30
)
else
if
(
count
>
30
)
{
{
break
;
break
;
}
}
mysql_free_result
(
res
);
mysql_free_result
(
res
);
}
}
...
...
mysql-test/t/disabled.def
View file @
e8abf51d
...
@@ -40,7 +40,6 @@ rpl_sp_effects : BUG#19862 2006-06-15 mkindahl
...
@@ -40,7 +40,6 @@ rpl_sp_effects : BUG#19862 2006-06-15 mkindahl
#rpl_row_basic_7ndb : BUG#21298 2006-07-27 msvensson
#rpl_row_basic_7ndb : BUG#21298 2006-07-27 msvensson
#rpl_truncate_7ndb : BUG#21298 2006-07-27 msvensson
#rpl_truncate_7ndb : BUG#21298 2006-07-27 msvensson
crash_commit_before : 2006-08-02 msvensson
crash_commit_before : 2006-08-02 msvensson
rpl_ndb_dd_advance : BUG#18679 2006-07-28 jimw (Test fails randomly)
func_group : BUG#21924 2006-08-30 reggie
func_group : BUG#21924 2006-08-30 reggie
func_in : BUG#21925 2006-08-30 reggie
func_in : BUG#21925 2006-08-30 reggie
ndb_binlog_discover : bug#21806 2006-08-24
ndb_binlog_discover : bug#21806 2006-08-24
...
...
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