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
60b19639
Commit
60b19639
authored
Nov 23, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#24543
Resend if master dies during alloc node id
parent
32f4f890
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
0 deletions
+50
-0
storage/ndb/src/kernel/blocks/ERROR_codes.txt
storage/ndb/src/kernel/blocks/ERROR_codes.txt
+3
-0
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
+5
-0
storage/ndb/src/mgmsrv/MgmtSrvr.cpp
storage/ndb/src/mgmsrv/MgmtSrvr.cpp
+3
-0
storage/ndb/test/ndbapi/testNodeRestart.cpp
storage/ndb/test/ndbapi/testNodeRestart.cpp
+35
-0
storage/ndb/test/run-test/daily-basic-tests.txt
storage/ndb/test/run-test/daily-basic-tests.txt
+4
-0
No files found.
storage/ndb/src/kernel/blocks/ERROR_codes.txt
View file @
60b19639
...
...
@@ -21,6 +21,9 @@ Crash president when he starts to run in ArbitState 1-9.
910: Crash new president after node crash
934 : Crash president in ALLOC_NODE_ID_REQ
ERROR CODES FOR TESTING NODE FAILURE, GLOBAL CHECKPOINT HANDLING:
-----------------------------------------------------------------
...
...
storage/ndb/src/kernel/blocks/qmgr/QmgrMain.cpp
View file @
60b19639
...
...
@@ -4832,6 +4832,11 @@ Qmgr::execALLOC_NODEID_REQ(Signal * signal)
return
;
}
if
(
ERROR_INSERTED
(
934
)
&&
nodeId
!=
getOwnNodeId
())
{
CRASH_INSERTION
(
934
);
}
opAllocNodeIdReq
.
m_req
=
*
req
;
opAllocNodeIdReq
.
m_error
=
0
;
opAllocNodeIdReq
.
m_connectCount
=
getNodeInfo
(
refToNode
(
senderRef
)).
m_connectCount
;
...
...
storage/ndb/src/mgmsrv/MgmtSrvr.cpp
View file @
60b19639
...
...
@@ -2051,7 +2051,10 @@ MgmtSrvr::alloc_node_id_req(NodeId free_node_id, enum ndb_mgm_node_type type)
ndbout_c
(
"Node %d fail completed"
,
rep
->
failedNodeId
);
#endif
if
(
rep
->
failedNodeId
==
nodeId
)
{
do_send
=
1
;
nodeId
=
0
;
}
continue
;
}
case
GSN_NODE_FAILREP
:{
...
...
storage/ndb/test/ndbapi/testNodeRestart.cpp
View file @
60b19639
...
...
@@ -966,6 +966,37 @@ runBug21271(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_OK
;
}
int
runBug24543
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
NdbRestarter
restarter
;
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
if
(
restarter
.
dumpStateAllNodes
(
val2
,
2
))
return
NDBT_FAILED
;
int
nodes
[
2
];
nodes
[
0
]
=
restarter
.
getMasterNodeId
();
restarter
.
insertErrorInNode
(
nodes
[
0
],
934
);
nodes
[
1
]
=
restarter
.
getRandomNodeOtherNodeGroup
(
nodes
[
0
],
rand
());
if
(
nodes
[
1
]
==
-
1
)
{
nodes
[
1
]
=
restarter
.
getRandomNodeSameNodeGroup
(
nodes
[
0
],
rand
());
}
restarter
.
restartOneDbNode
(
nodes
[
1
],
false
,
true
,
true
);
if
(
restarter
.
waitNodesNoStart
(
nodes
,
2
))
return
NDBT_FAILED
;
restarter
.
startNodes
(
nodes
,
2
);
if
(
restarter
.
waitNodesStarted
(
nodes
,
2
))
{
return
NDBT_FAILED
;
}
return
NDBT_OK
;
}
NDBT_TESTSUITE
(
testNodeRestart
);
TESTCASE
(
"NoLoad"
,
...
...
@@ -1279,6 +1310,10 @@ TESTCASE("Bug20185",
STEP
(
runBug20185
);
FINALIZER
(
runClearTable
);
}
TESTCASE
(
"Bug24543"
,
""
)
{
INITIALIZER
(
runBug24543
);
}
TESTCASE
(
"Bug21271"
,
""
){
INITIALIZER
(
runLoadTable
);
...
...
storage/ndb/test/run-test/daily-basic-tests.txt
View file @
60b19639
...
...
@@ -744,6 +744,10 @@ max-time: 1000
cmd: testSRBank
args: -n Mix -l 300 -r 15 T1
max-time: 300
cmd: testNodeRestart
args: -n Bug24543 T1
# OLD FLEX
max-time: 500
cmd: flexBench
...
...
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