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
674a33f5
Commit
674a33f5
authored
Jun 01, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge joreland@bk-internal.mysql.com:/home/bk/mysql-5.0
into perch.ndb.mysql.com:/home/jonas/src/mysql-5.0
parents
168cad46
dbbc4c76
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
92 additions
and
3 deletions
+92
-3
ndb/src/kernel/blocks/ERROR_codes.txt
ndb/src/kernel/blocks/ERROR_codes.txt
+3
-0
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+24
-0
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
+5
-3
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+56
-0
ndb/test/run-test/daily-basic-tests.txt
ndb/test/run-test/daily-basic-tests.txt
+4
-0
No files found.
ndb/src/kernel/blocks/ERROR_codes.txt
View file @
674a33f5
...
...
@@ -63,6 +63,9 @@ Delay GCP_SAVEREQ by 10 secs
7165: Delay INCL_NODE_REQ in starting node yeilding error in GCP_PREPARE
7030: Delay in GCP_PREPARE until node has completed a node failure
7031: Delay in GCP_PREPARE and die 3s later
ERROR CODES FOR TESTING NODE FAILURE, LOCAL CHECKPOINT HANDLING:
-----------------------------------------------------------------
...
...
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
674a33f5
...
...
@@ -5425,6 +5425,12 @@ Dbdih::checkLocalNodefailComplete(Signal* signal, Uint32 failedNodeId,
return
;
}
if
(
ERROR_INSERTED
(
7030
))
{
ndbout_c
(
"Reenable GCP_PREPARE"
);
CLEAR_ERROR_INSERT_VALUE
;
}
NFCompleteRep
*
const
nf
=
(
NFCompleteRep
*
)
&
signal
->
theData
[
0
];
nf
->
blockNo
=
DBDIH
;
nf
->
nodeId
=
cownNodeId
;
...
...
@@ -7484,6 +7490,16 @@ void Dbdih::execGCP_PREPARE(Signal* signal)
{
jamEntry
();
CRASH_INSERTION
(
7005
);
if
(
ERROR_INSERTED
(
7030
))
{
cgckptflag
=
true
;
ndbout_c
(
"Delayed GCP_PREPARE 5s"
);
sendSignalWithDelay
(
reference
(),
GSN_GCP_PREPARE
,
signal
,
5000
,
signal
->
getLength
());
return
;
}
Uint32
masterNodeId
=
signal
->
theData
[
0
];
Uint32
gci
=
signal
->
theData
[
1
];
BlockReference
retRef
=
calcDihBlockRef
(
masterNodeId
);
...
...
@@ -7496,6 +7512,14 @@ void Dbdih::execGCP_PREPARE(Signal* signal)
cgcpParticipantState
=
GCP_PARTICIPANT_PREPARE_RECEIVED
;
cnewgcp
=
gci
;
if
(
ERROR_INSERTED
(
7031
))
{
ndbout_c
(
"Crashing delayed in GCP_PREPARE 3s"
);
signal
->
theData
[
0
]
=
9999
;
sendSignalWithDelay
(
CMVMI_REF
,
GSN_NDB_TAMPER
,
signal
,
3000
,
1
);
return
;
}
signal
->
theData
[
0
]
=
cownNodeId
;
signal
->
theData
[
1
]
=
gci
;
sendSignal
(
retRef
,
GSN_GCP_PREPARECONF
,
signal
,
2
,
JBA
);
...
...
ndb/src/kernel/blocks/dbtc/DbtcMain.cpp
View file @
674a33f5
...
...
@@ -7071,18 +7071,20 @@ Dbtc::nodeFailCheckTransactions(Signal* signal,
{
jam
();
Ptr
<
ApiConnectRecord
>
transPtr
;
Uint32
TtcTimer
=
ctcTimer
;
Uint32
TapplTimeout
=
c_appl_timeout_value
;
for
(
transPtr
.
i
=
transPtrI
;
transPtr
.
i
<
capiConnectFilesize
;
transPtr
.
i
++
)
{
ptrCheckGuard
(
transPtr
,
capiConnectFilesize
,
apiConnectRecord
);
if
(
transPtr
.
p
->
m_transaction_nodes
.
get
(
failedNodeId
))
{
jam
();
// Force timeout regardless of state
Uint32
save
=
c_appl_timeout_value
;
c_appl_timeout_value
=
1
;
setApiConTimer
(
transPtr
.
i
,
0
,
__LINE__
);
setApiConTimer
(
transPtr
.
i
,
TtcTimer
-
2
,
__LINE__
);
timeOutFoundLab
(
signal
,
transPtr
.
i
,
ZNODEFAIL_BEFORE_COMMIT
);
c_appl_timeout_value
=
save
;
c_appl_timeout_value
=
TapplTimeout
;
}
// Send CONTINUEB to continue later
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
674a33f5
...
...
@@ -868,6 +868,56 @@ runBug18612SR(NDBT_Context* ctx, NDBT_Step* step){
return
NDBT_OK
;
}
int
runBug20185
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
){
int
result
=
NDBT_OK
;
int
loops
=
ctx
->
getNumLoops
();
int
records
=
ctx
->
getNumRecords
();
NdbRestarter
restarter
;
HugoOperations
hugoOps
(
*
ctx
->
getTab
());
Ndb
*
pNdb
=
GETNDB
(
step
);
int
dump
[]
=
{
7090
,
20
}
;
if
(
restarter
.
dumpStateAllNodes
(
dump
,
2
))
return
NDBT_FAILED
;
NdbSleep_MilliSleep
(
3000
);
if
(
hugoOps
.
startTransaction
(
pNdb
)
!=
0
)
return
NDBT_FAILED
;
if
(
hugoOps
.
pkUpdateRecord
(
pNdb
,
1
,
1
)
!=
0
)
return
NDBT_FAILED
;
if
(
hugoOps
.
execute_NoCommit
(
pNdb
)
!=
0
)
return
NDBT_FAILED
;
int
nodeId
;
const
int
node
=
hugoOps
.
getTransaction
()
->
getConnectedNodeId
();
do
{
nodeId
=
restarter
.
getDbNodeId
(
rand
()
%
restarter
.
getNumDbNodes
());
}
while
(
nodeId
==
node
);
if
(
restarter
.
insertErrorInAllNodes
(
7030
))
return
NDBT_FAILED
;
if
(
restarter
.
insertErrorInNode
(
nodeId
,
7031
))
return
NDBT_FAILED
;
NdbSleep_MilliSleep
(
500
);
if
(
hugoOps
.
execute_Commit
(
pNdb
)
==
0
)
return
NDBT_FAILED
;
NdbSleep_MilliSleep
(
3000
);
restarter
.
waitClusterStarted
();
if
(
restarter
.
dumpStateAllNodes
(
dump
,
1
))
return
NDBT_FAILED
;
return
NDBT_OK
;
}
NDBT_TESTSUITE
(
testNodeRestart
);
TESTCASE
(
"NoLoad"
,
...
...
@@ -1175,6 +1225,12 @@ TESTCASE("Bug18612SR",
STEP
(
runBug18612SR
);
FINALIZER
(
runClearTable
);
}
TESTCASE
(
"Bug20185"
,
""
){
INITIALIZER
(
runLoadTable
);
STEP
(
runBug20185
);
FINALIZER
(
runClearTable
);
}
NDBT_TESTSUITE_END
(
testNodeRestart
);
int
main
(
int
argc
,
const
char
**
argv
){
...
...
ndb/test/run-test/daily-basic-tests.txt
View file @
674a33f5
...
...
@@ -445,6 +445,10 @@ max-time: 1000
cmd: testNodeRestart
args: -n Bug18612SR T1
max-time: 1000
cmd: testNodeRestart
args: -n Bug20185 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