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
98a0b452
Commit
98a0b452
authored
Jun 22, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated for bug#28770
parent
12807651
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
1 deletion
+62
-1
storage/ndb/src/kernel/blocks/ERROR_codes.txt
storage/ndb/src/kernel/blocks/ERROR_codes.txt
+2
-1
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
+9
-0
storage/ndb/test/ndbapi/testSystemRestart.cpp
storage/ndb/test/ndbapi/testSystemRestart.cpp
+47
-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 @
98a0b452
...
...
@@ -4,7 +4,7 @@ Next NDBFS 2000
Next DBACC 3002
Next DBTUP 4029
Next DBLQH 5045
Next DBDICT 600
7
Next DBDICT 600
8
Next DBDIH 7184
Next DBTC 8040
Next CMVMI 9000
...
...
@@ -503,6 +503,7 @@ Dbdict:
6003 Crash in participant @ CreateTabReq::Prepare
6004 Crash in participant @ CreateTabReq::Commit
6005 Crash in participant @ CreateTabReq::CreateDrop
6007 Fail on readTableFile for READ_TAB_FILE1 (28770)
Dbtup:
4014 - handleInsert - Out of undo buffer
...
...
storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
View file @
98a0b452
...
...
@@ -802,6 +802,15 @@ void Dbdict::execFSREADCONF(Signal* signal)
readSchemaConf
(
signal
,
fsPtr
);
break
;
case
FsConnectRecord
:
:
READ_TAB_FILE1
:
if
(
ERROR_INSERTED
(
6007
)){
jam
();
FsRef
*
const
fsRef
=
(
FsRef
*
)
&
signal
->
theData
[
0
];
fsRef
->
userPointer
=
fsConf
->
userPointer
;
fsRef
->
setErrorCode
(
fsRef
->
errorCode
,
NDBD_EXIT_AFS_UNKNOWN
);
fsRef
->
osErrorCode
=
~
0
;
// Indicate local error
execFSREADREF
(
signal
);
return
;
}
//Testing how DICT behave if read of file 1 fails (Bug#28770)
case
FsConnectRecord
:
:
READ_TAB_FILE2
:
jam
();
readTableConf
(
signal
,
fsPtr
);
...
...
storage/ndb/test/ndbapi/testSystemRestart.cpp
View file @
98a0b452
...
...
@@ -1261,6 +1261,39 @@ runBug29167(NDBT_Context* ctx, NDBT_Step* step)
return
result
;
}
int
runBug28770
(
NDBT_Context
*
ctx
,
NDBT_Step
*
step
)
{
Ndb
*
pNdb
=
GETNDB
(
step
);
NdbRestarter
restarter
;
int
result
=
NDBT_OK
;
int
count
=
0
;
Uint32
i
=
0
;
Uint32
loops
=
ctx
->
getNumLoops
();
int
records
=
ctx
->
getNumRecords
();
UtilTransactions
utilTrans
(
*
ctx
->
getTab
());
HugoTransactions
hugoTrans
(
*
ctx
->
getTab
());
g_info
<<
"Loading records..."
<<
endl
;
hugoTrans
.
loadTable
(
pNdb
,
records
);
while
(
i
<=
loops
&&
result
!=
NDBT_FAILED
){
g_info
<<
"Loop "
<<
i
<<
"/"
<<
loops
<<
" started"
<<
endl
;
CHECK
(
restarter
.
restartAll
(
false
,
true
,
false
)
==
0
);
NdbSleep_SecSleep
(
3
);
CHECK
(
restarter
.
waitClusterNoStart
()
==
0
);
restarter
.
insertErrorInAllNodes
(
6007
);
CHECK
(
restarter
.
startAll
()
==
0
);
CHECK
(
restarter
.
waitClusterStarted
()
==
0
);
CHECK
(
utilTrans
.
selectCount
(
pNdb
,
64
,
&
count
)
==
0
);
CHECK
(
count
==
records
);
i
++
;
}
ndbout
<<
" runBug28770 finished"
<<
endl
;
return
result
;
}
NDBT_TESTSUITE
(
testSystemRestart
);
TESTCASE
(
"SR1"
,
"Basic system restart test. Focus on testing restart from REDO log.
\n
"
...
...
@@ -1446,6 +1479,20 @@ TESTCASE("Bug29167", "")
INITIALIZER
(
runWaitStarted
);
STEP
(
runBug29167
);
}
TESTCASE
(
"Bug28770"
,
"Check readTableFile1 fails, readTableFile2 succeeds
\n
"
"1. Restart all node -nostart
\n
"
"2. Insert error 6100 into all nodes
\n
"
"3. Start all nodes
\n
"
"4. Ensure cluster start
\n
"
"5. Read and verify reocrds
\n
"
"6. Repeat until looping is completed
\n
"
){
INITIALIZER
(
runWaitStarted
);
INITIALIZER
(
runClearTable
);
STEP
(
runBug28770
);
FINALIZER
(
runClearTable
);
}
NDBT_TESTSUITE_END
(
testSystemRestart
);
...
...
storage/ndb/test/run-test/daily-basic-tests.txt
View file @
98a0b452
...
...
@@ -489,6 +489,10 @@ max-time: 300
cmd: testSystemRestart
args: -n Bug29167 T1
max-time: 300
cmd: testSystemRestart
args: -l 2 -n Bug28770 T1
max-time: 1000
cmd: testNodeRestart
args: -n Bug27283 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