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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
261c77a0
Commit
261c77a0
authored
Oct 11, 2007
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.1-new-ndb
into perch.ndb.mysql.com:/home/jonas/src/51-ndb
parents
cc62b340
af5da705
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
90 additions
and
2 deletions
+90
-2
storage/ndb/src/kernel/blocks/ERROR_codes.txt
storage/ndb/src/kernel/blocks/ERROR_codes.txt
+4
-1
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+4
-0
storage/ndb/test/ndbapi/testNodeRestart.cpp
storage/ndb/test/ndbapi/testNodeRestart.cpp
+77
-0
storage/ndb/test/run-test/daily-basic-tests.txt
storage/ndb/test/run-test/daily-basic-tests.txt
+5
-1
No files found.
storage/ndb/src/kernel/blocks/ERROR_codes.txt
View file @
261c77a0
...
@@ -5,7 +5,7 @@ Next DBACC 3002
...
@@ -5,7 +5,7 @@ Next DBACC 3002
Next DBTUP 4029
Next DBTUP 4029
Next DBLQH 5045
Next DBLQH 5045
Next DBDICT 6008
Next DBDICT 6008
Next DBDIH 71
86
Next DBDIH 71
93
Next DBTC 8054
Next DBTC 8054
Next CMVMI 9000
Next CMVMI 9000
Next BACKUP 10038
Next BACKUP 10038
...
@@ -157,6 +157,9 @@ And crash when all have "not" been sent
...
@@ -157,6 +157,9 @@ And crash when all have "not" been sent
7027: Crash in master when changing state to LCP_TAB_SAVED
7027: Crash in master when changing state to LCP_TAB_SAVED
7018: Crash in master when changing state to LCP_TAB_SAVED
7018: Crash in master when changing state to LCP_TAB_SAVED
7191: Crash when receiving LCP_COMPLETE_REP
7192: Crash in setLcpActiveStatusStart - when dead node missed to LCP's
ERROR CODES FOR TESTING NODE FAILURE, FAILURE IN COPY FRAGMENT PROCESS:
ERROR CODES FOR TESTING NODE FAILURE, FAILURE IN COPY FRAGMENT PROCESS:
-----------------------------------------------------------------------
-----------------------------------------------------------------------
...
...
storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
261c77a0
...
@@ -10931,6 +10931,8 @@ void Dbdih::execLCP_COMPLETE_REP(Signal* signal)
...
@@ -10931,6 +10931,8 @@ void Dbdih::execLCP_COMPLETE_REP(Signal* signal)
{
{
jamEntry
();
jamEntry
();
CRASH_INSERTION
(
7191
);
#if 0
#if 0
g_eventLogger.info("LCP_COMPLETE_REP");
g_eventLogger.info("LCP_COMPLETE_REP");
printLCP_COMPLETE_REP(stdout,
printLCP_COMPLETE_REP(stdout,
...
@@ -13690,6 +13692,7 @@ void Dbdih::setLcpActiveStatusStart(Signal* signal)
...
@@ -13690,6 +13692,7 @@ void Dbdih::setLcpActiveStatusStart(Signal* signal)
// It must be taken over with the copy fragment process after a system
// It must be taken over with the copy fragment process after a system
// crash. We indicate this by setting the active status to TAKE_OVER.
// crash. We indicate this by setting the active status to TAKE_OVER.
/*-------------------------------------------------------------------*/
/*-------------------------------------------------------------------*/
c_lcpState
.
m_participatingLQH
.
set
(
nodePtr
.
i
);
nodePtr
.
p
->
activeStatus
=
Sysfile
::
NS_TakeOver
;
nodePtr
.
p
->
activeStatus
=
Sysfile
::
NS_TakeOver
;
//break; // Fall through
//break; // Fall through
case
Sysfile
:
:
NS_TakeOver
:
{
case
Sysfile
:
:
NS_TakeOver
:
{
...
@@ -13732,6 +13735,7 @@ void Dbdih::setLcpActiveStatusStart(Signal* signal)
...
@@ -13732,6 +13735,7 @@ void Dbdih::setLcpActiveStatusStart(Signal* signal)
break
;
break
;
case
Sysfile
:
:
NS_ActiveMissed_2
:
case
Sysfile
:
:
NS_ActiveMissed_2
:
jam
();
jam
();
CRASH_INSERTION
(
7192
);
if
((
nodePtr
.
p
->
nodeStatus
==
NodeRecord
::
ALIVE
)
&&
if
((
nodePtr
.
p
->
nodeStatus
==
NodeRecord
::
ALIVE
)
&&
(
!
nodePtr
.
p
->
copyCompleted
))
{
(
!
nodePtr
.
p
->
copyCompleted
))
{
jam
();
jam
();
...
...
storage/ndb/test/ndbapi/testNodeRestart.cpp
View file @
261c77a0
...
@@ -1762,6 +1762,80 @@ runBug28717(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -1762,6 +1762,80 @@ runBug28717(NDBT_Context* ctx, NDBT_Step* step)
return
NDBT_OK
;
return
NDBT_OK
;
}
}
int
runBug31525
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
)
{
int
result
=
NDBT_OK
;
int
loops
=
ctx
->
getNumLoops
();
int
records
=
ctx
->
getNumRecords
();
Ndb
*
pNdb
=
GETNDB
(
step
);
NdbRestarter
res
;
if
(
res
.
getNumDbNodes
()
<
2
)
{
return
NDBT_OK
;
}
int
nodes
[
2
];
nodes
[
0
]
=
res
.
getMasterNodeId
();
nodes
[
1
]
=
res
.
getNextMasterNodeId
(
nodes
[
0
]);
while
(
res
.
getNodeGroup
(
nodes
[
0
])
!=
res
.
getNodeGroup
(
nodes
[
1
]))
{
ndbout_c
(
"Restarting %u as it not in same node group as %u"
,
nodes
[
1
],
nodes
[
0
]);
if
(
res
.
restartOneDbNode
(
nodes
[
1
],
false
,
true
,
true
))
return
NDBT_FAILED
;
if
(
res
.
waitNodesNoStart
(
nodes
+
1
,
1
))
return
NDBT_FAILED
;
if
(
res
.
startNodes
(
nodes
+
1
,
1
))
return
NDBT_FAILED
;
if
(
res
.
waitClusterStarted
())
return
NDBT_FAILED
;
nodes
[
1
]
=
res
.
getNextMasterNodeId
(
nodes
[
0
]);
}
ndbout_c
(
"nodes[0]: %u nodes[1]: %u"
,
nodes
[
0
],
nodes
[
1
]);
int
val
=
DumpStateOrd
::
DihMinTimeBetweenLCP
;
if
(
res
.
dumpStateAllNodes
(
&
val
,
1
))
return
NDBT_FAILED
;
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
if
(
res
.
dumpStateAllNodes
(
val2
,
2
))
return
NDBT_FAILED
;
if
(
res
.
insertErrorInAllNodes
(
932
))
return
NDBT_FAILED
;
if
(
res
.
insertErrorInNode
(
nodes
[
1
],
7192
))
return
NDBT_FAILED
;
if
(
res
.
insertErrorInNode
(
nodes
[
0
],
7191
))
return
NDBT_FAILED
;
if
(
res
.
waitClusterNoStart
())
return
NDBT_FAILED
;
if
(
res
.
startAll
())
return
NDBT_FAILED
;
if
(
res
.
waitClusterStarted
())
return
NDBT_FAILED
;
if
(
res
.
restartOneDbNode
(
nodes
[
1
],
false
,
false
,
true
))
return
NDBT_FAILED
;
if
(
res
.
waitClusterStarted
())
return
NDBT_FAILED
;
return
NDBT_OK
;
}
NDBT_TESTSUITE
(
testNodeRestart
);
NDBT_TESTSUITE
(
testNodeRestart
);
TESTCASE
(
"NoLoad"
,
TESTCASE
(
"NoLoad"
,
"Test that one node at a time can be stopped and then restarted "
\
"Test that one node at a time can be stopped and then restarted "
\
...
@@ -2085,6 +2159,9 @@ TESTCASE("Bug21271",
...
@@ -2085,6 +2159,9 @@ TESTCASE("Bug21271",
STEP
(
runPkUpdateUntilStopped
);
STEP
(
runPkUpdateUntilStopped
);
FINALIZER
(
runClearTable
);
FINALIZER
(
runClearTable
);
}
}
TESTCASE
(
"Bug31525"
,
""
){
INITIALIZER
(
runBug31525
);
}
TESTCASE
(
"Bug24717"
,
""
){
TESTCASE
(
"Bug24717"
,
""
){
INITIALIZER
(
runBug24717
);
INITIALIZER
(
runBug24717
);
}
}
...
...
storage/ndb/test/run-test/daily-basic-tests.txt
View file @
261c77a0
...
@@ -555,7 +555,7 @@ args: -n Bug25554 T1
...
@@ -555,7 +555,7 @@ args: -n Bug25554 T1
max-time: 3000
max-time: 3000
cmd: testNodeRestart
cmd: testNodeRestart
args: -n Bug25984
args: -n Bug25984
T1
max-time: 1000
max-time: 1000
cmd: testNodeRestart
cmd: testNodeRestart
...
@@ -1018,3 +1018,7 @@ max-time: 1500
...
@@ -1018,3 +1018,7 @@ max-time: 1500
cmd: testSystemRestart
cmd: testSystemRestart
args: -n SR_DD_2b_LCP D2
args: -n SR_DD_2b_LCP D2
max-time: 600
cmd: testNodeRestart
args: -n Bug31525 T1
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