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
b8ecfef8
Commit
b8ecfef8
authored
Dec 10, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.0
into whalegate.ndb.mysql.com:/home/tomas/mysql-5.0-ndb-merge
parents
f77684f3
d7ed2538
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
214 additions
and
24 deletions
+214
-24
mysql-test/r/ndb_basic.result
mysql-test/r/ndb_basic.result
+24
-0
mysql-test/t/ndb_basic.test
mysql-test/t/ndb_basic.test
+20
-2
ndb/src/kernel/blocks/ERROR_codes.txt
ndb/src/kernel/blocks/ERROR_codes.txt
+6
-1
ndb/src/kernel/blocks/dbdih/Dbdih.hpp
ndb/src/kernel/blocks/dbdih/Dbdih.hpp
+10
-0
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
+54
-6
ndb/src/ndbapi/NdbOperationDefine.cpp
ndb/src/ndbapi/NdbOperationDefine.cpp
+25
-8
ndb/src/ndbapi/NdbOperationSearch.cpp
ndb/src/ndbapi/NdbOperationSearch.cpp
+23
-7
ndb/test/ndbapi/testNodeRestart.cpp
ndb/test/ndbapi/testNodeRestart.cpp
+48
-0
ndb/test/run-test/daily-basic-tests.txt
ndb/test/run-test/daily-basic-tests.txt
+4
-0
No files found.
mysql-test/r/ndb_basic.result
View file @
b8ecfef8
...
@@ -841,4 +841,28 @@ a b
...
@@ -841,4 +841,28 @@ a b
3 30
3 30
4 1
4 1
drop table t1,t2;
drop table t1,t2;
create table t1 (a varchar(100) primary key, b varchar(100)) engine = NDB;
insert into t1 values
('a', 'a'),('b','b'),('c', 'c'),('aa', 'aa'),('bb', 'bb'),('cc', 'cc');
replace into t1 values ('a', '-a');
replace into t1 values ('b', '-b');
replace into t1 values ('c', '-c');
replace into t1 values ('aa', '-aa');
replace into t1 values ('bb', '-bb');
replace into t1 values ('cc', '-cc');
replace into t1 values ('aaa', '-aaa');
replace into t1 values ('bbb', '-bbb');
replace into t1 values ('ccc', '-ccc');
select * from t1 order by 1,2;
a b
a -a
aa -aa
aaa -aaa
b -b
bb -bb
bbb -bbb
c -c
cc -cc
ccc -ccc
drop table t1;
End of 5.0 tests
End of 5.0 tests
mysql-test/t/ndb_basic.test
View file @
b8ecfef8
...
@@ -780,7 +780,25 @@ update ignore t1,t2 set a = 1, c = 1 where a = 3 and c = 3;
...
@@ -780,7 +780,25 @@ update ignore t1,t2 set a = 1, c = 1 where a = 3 and c = 3;
select
*
from
t1
order
by
a
;
select
*
from
t1
order
by
a
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
# End of 5.0 tests
#
--
echo
End
of
5.0
tests
# Bug#31635
#
create
table
t1
(
a
varchar
(
100
)
primary
key
,
b
varchar
(
100
))
engine
=
NDB
;
insert
into
t1
values
(
'a'
,
'a'
),(
'b'
,
'b'
),(
'c'
,
'c'
),(
'aa'
,
'aa'
),(
'bb'
,
'bb'
),(
'cc'
,
'cc'
);
replace
into
t1
values
(
'a'
,
'-a'
);
replace
into
t1
values
(
'b'
,
'-b'
);
replace
into
t1
values
(
'c'
,
'-c'
);
replace
into
t1
values
(
'aa'
,
'-aa'
);
replace
into
t1
values
(
'bb'
,
'-bb'
);
replace
into
t1
values
(
'cc'
,
'-cc'
);
replace
into
t1
values
(
'aaa'
,
'-aaa'
);
replace
into
t1
values
(
'bbb'
,
'-bbb'
);
replace
into
t1
values
(
'ccc'
,
'-ccc'
);
select
*
from
t1
order
by
1
,
2
;
drop
table
t1
;
# End of 5.0 tests
--
echo
End
of
5.0
tests
ndb/src/kernel/blocks/ERROR_codes.txt
View file @
b8ecfef8
...
@@ -5,7 +5,7 @@ Next DBACC 3002
...
@@ -5,7 +5,7 @@ Next DBACC 3002
Next DBTUP 4014
Next DBTUP 4014
Next DBLQH 5043
Next DBLQH 5043
Next DBDICT 6007
Next DBDICT 6007
Next DBDIH 71
83
Next DBDIH 71
95
Next DBTC 8052
Next DBTC 8052
Next CMVMI 9000
Next CMVMI 9000
Next BACKUP 10022
Next BACKUP 10022
...
@@ -73,6 +73,11 @@ Delay GCP_SAVEREQ by 10 secs
...
@@ -73,6 +73,11 @@ Delay GCP_SAVEREQ by 10 secs
7180: Crash master during master-take-over in execMASTER_LCPCONF
7180: Crash master during master-take-over in execMASTER_LCPCONF
7193: Dont send LCP_FRAG_ORD to self, and crash when sending first
LCP_FRAG_ORD(last)
7194: Force removeNodeFromStored to complete in the middle of MASTER_LCPCONF
ERROR CODES FOR TESTING NODE FAILURE, LOCAL CHECKPOINT HANDLING:
ERROR CODES FOR TESTING NODE FAILURE, LOCAL CHECKPOINT HANDLING:
-----------------------------------------------------------------
-----------------------------------------------------------------
...
...
ndb/src/kernel/blocks/dbdih/Dbdih.hpp
View file @
b8ecfef8
...
@@ -1291,7 +1291,17 @@ private:
...
@@ -1291,7 +1291,17 @@ private:
LcpStatus
lcpStatus
;
LcpStatus
lcpStatus
;
Uint32
lcpStatusUpdatedPlace
;
Uint32
lcpStatusUpdatedPlace
;
struct
Save
{
LcpStatus
m_status
;
Uint32
m_place
;
}
m_saveState
[
10
];
void
setLcpStatus
(
LcpStatus
status
,
Uint32
line
){
void
setLcpStatus
(
LcpStatus
status
,
Uint32
line
){
for
(
Uint32
i
=
9
;
i
>
0
;
i
--
)
m_saveState
[
i
]
=
m_saveState
[
i
-
1
];
m_saveState
[
0
].
m_status
=
lcpStatus
;
m_saveState
[
0
].
m_place
=
lcpStatusUpdatedPlace
;
lcpStatus
=
status
;
lcpStatus
=
status
;
lcpStatusUpdatedPlace
=
line
;
lcpStatusUpdatedPlace
=
line
;
}
}
...
...
ndb/src/kernel/blocks/dbdih/DbdihMain.cpp
View file @
b8ecfef8
...
@@ -4764,11 +4764,19 @@ void Dbdih::startRemoveFailedNode(Signal* signal, NodeRecordPtr failedNodePtr)
...
@@ -4764,11 +4764,19 @@ void Dbdih::startRemoveFailedNode(Signal* signal, NodeRecordPtr failedNodePtr)
}
}
jam
();
jam
();
signal
->
theData
[
0
]
=
DihContinueB
::
ZREMOVE_NODE_FROM_TABLE
;
signal
->
theData
[
1
]
=
failedNodePtr
.
i
;
if
(
!
ERROR_INSERTED
(
7194
))
signal
->
theData
[
2
]
=
0
;
// Tab id
{
sendSignal
(
reference
(),
GSN_CONTINUEB
,
signal
,
3
,
JBB
);
signal
->
theData
[
0
]
=
DihContinueB
::
ZREMOVE_NODE_FROM_TABLE
;
signal
->
theData
[
1
]
=
failedNodePtr
.
i
;
signal
->
theData
[
2
]
=
0
;
// Tab id
sendSignal
(
reference
(),
GSN_CONTINUEB
,
signal
,
3
,
JBB
);
}
else
{
ndbout_c
(
"7194 Not starting ZREMOVE_NODE_FROM_TABLE"
);
}
setLocalNodefailHandling
(
signal
,
failedNodePtr
.
i
,
NF_REMOVE_NODE_FROM_TABLE
);
setLocalNodefailHandling
(
signal
,
failedNodePtr
.
i
,
NF_REMOVE_NODE_FROM_TABLE
);
}
//Dbdih::startRemoveFailedNode()
}
//Dbdih::startRemoveFailedNode()
...
@@ -5676,12 +5684,22 @@ Dbdih::checkEmptyLcpComplete(Signal *signal){
...
@@ -5676,12 +5684,22 @@ Dbdih::checkEmptyLcpComplete(Signal *signal){
signal
->
theData
[
0
]
=
7012
;
signal
->
theData
[
0
]
=
7012
;
execDUMP_STATE_ORD
(
signal
);
execDUMP_STATE_ORD
(
signal
);
if
(
ERROR_INSERTED
(
7194
))
{
ndbout_c
(
"7194 starting ZREMOVE_NODE_FROM_TABLE"
);
signal
->
theData
[
0
]
=
DihContinueB
::
ZREMOVE_NODE_FROM_TABLE
;
signal
->
theData
[
1
]
=
c_lcpMasterTakeOverState
.
failedNodeId
;
signal
->
theData
[
2
]
=
0
;
// Tab id
sendSignal
(
reference
(),
GSN_CONTINUEB
,
signal
,
3
,
JBB
);
}
c_lcpMasterTakeOverState
.
set
(
LMTOS_INITIAL
,
__LINE__
);
c_lcpMasterTakeOverState
.
set
(
LMTOS_INITIAL
,
__LINE__
);
MasterLCPReq
*
const
req
=
(
MasterLCPReq
*
)
&
signal
->
theData
[
0
];
MasterLCPReq
*
const
req
=
(
MasterLCPReq
*
)
&
signal
->
theData
[
0
];
req
->
masterRef
=
reference
();
req
->
masterRef
=
reference
();
req
->
failedNodeId
=
c_lcpMasterTakeOverState
.
failedNodeId
;
req
->
failedNodeId
=
c_lcpMasterTakeOverState
.
failedNodeId
;
sendLoopMacro
(
MASTER_LCPREQ
,
sendMASTER_LCPREQ
);
sendLoopMacro
(
MASTER_LCPREQ
,
sendMASTER_LCPREQ
);
}
else
{
}
else
{
sendMASTER_LCPCONF
(
signal
);
sendMASTER_LCPCONF
(
signal
);
}
}
...
@@ -5998,6 +6016,15 @@ void Dbdih::execMASTER_LCPCONF(Signal* signal)
...
@@ -5998,6 +6016,15 @@ void Dbdih::execMASTER_LCPCONF(Signal* signal)
{
{
const
MasterLCPConf
*
const
conf
=
(
MasterLCPConf
*
)
&
signal
->
theData
[
0
];
const
MasterLCPConf
*
const
conf
=
(
MasterLCPConf
*
)
&
signal
->
theData
[
0
];
jamEntry
();
jamEntry
();
if
(
ERROR_INSERTED
(
7194
))
{
ndbout_c
(
"delaying MASTER_LCPCONF due to error 7194"
);
sendSignalWithDelay
(
reference
(),
GSN_MASTER_LCPCONF
,
signal
,
300
,
signal
->
getLength
());
return
;
}
Uint32
senderNodeId
=
conf
->
senderNodeId
;
Uint32
senderNodeId
=
conf
->
senderNodeId
;
MasterLCPConf
::
State
lcpState
=
(
MasterLCPConf
::
State
)
conf
->
lcpState
;
MasterLCPConf
::
State
lcpState
=
(
MasterLCPConf
::
State
)
conf
->
lcpState
;
const
Uint32
failedNodeId
=
conf
->
failedNodeId
;
const
Uint32
failedNodeId
=
conf
->
failedNodeId
;
...
@@ -6132,7 +6159,6 @@ void Dbdih::MASTER_LCPhandling(Signal* signal, Uint32 failedNodeId)
...
@@ -6132,7 +6159,6 @@ void Dbdih::MASTER_LCPhandling(Signal* signal, Uint32 failedNodeId)
#endif
#endif
c_lcpState
.
keepGci
=
SYSFILE
->
keepGCI
;
c_lcpState
.
keepGci
=
SYSFILE
->
keepGCI
;
c_lcpState
.
setLcpStatus
(
LCP_START_LCP_ROUND
,
__LINE__
);
startLcpRoundLoopLab
(
signal
,
0
,
0
);
startLcpRoundLoopLab
(
signal
,
0
,
0
);
break
;
break
;
}
}
...
@@ -9924,6 +9950,8 @@ void Dbdih::sendLastLCP_FRAG_ORD(Signal* signal)
...
@@ -9924,6 +9950,8 @@ void Dbdih::sendLastLCP_FRAG_ORD(Signal* signal)
if
(
ERROR_INSERTED
(
7075
)){
if
(
ERROR_INSERTED
(
7075
)){
continue
;
continue
;
}
}
CRASH_INSERTION
(
7193
);
BlockReference
ref
=
calcLqhBlockRef
(
nodePtr
.
i
);
BlockReference
ref
=
calcLqhBlockRef
(
nodePtr
.
i
);
sendSignal
(
ref
,
GSN_LCP_FRAG_ORD
,
signal
,
LcpFragOrd
::
SignalLength
,
JBB
);
sendSignal
(
ref
,
GSN_LCP_FRAG_ORD
,
signal
,
LcpFragOrd
::
SignalLength
,
JBB
);
}
}
...
@@ -10121,6 +10149,13 @@ Dbdih::checkLcpAllTablesDoneInLqh(){
...
@@ -10121,6 +10149,13 @@ Dbdih::checkLcpAllTablesDoneInLqh(){
CRASH_INSERTION2
(
7017
,
!
isMaster
());
CRASH_INSERTION2
(
7017
,
!
isMaster
());
c_lcpState
.
setLcpStatus
(
LCP_TAB_COMPLETED
,
__LINE__
);
c_lcpState
.
setLcpStatus
(
LCP_TAB_COMPLETED
,
__LINE__
);
if
(
ERROR_INSERTED
(
7194
))
{
ndbout_c
(
"CLEARING 7194"
);
CLEAR_ERROR_INSERT_VALUE
;
}
return
true
;
return
true
;
}
}
...
@@ -10276,6 +10311,11 @@ Dbdih::sendLCP_FRAG_ORD(Signal* signal,
...
@@ -10276,6 +10311,11 @@ Dbdih::sendLCP_FRAG_ORD(Signal* signal,
BlockReference
ref
=
calcLqhBlockRef
(
replicaPtr
.
p
->
procNode
);
BlockReference
ref
=
calcLqhBlockRef
(
replicaPtr
.
p
->
procNode
);
if
(
ERROR_INSERTED
(
7193
)
&&
replicaPtr
.
p
->
procNode
==
getOwnNodeId
())
{
return
;
}
LcpFragOrd
*
const
lcpFragOrd
=
(
LcpFragOrd
*
)
&
signal
->
theData
[
0
];
LcpFragOrd
*
const
lcpFragOrd
=
(
LcpFragOrd
*
)
&
signal
->
theData
[
0
];
lcpFragOrd
->
tableId
=
info
.
tableId
;
lcpFragOrd
->
tableId
=
info
.
tableId
;
lcpFragOrd
->
fragmentId
=
info
.
fragId
;
lcpFragOrd
->
fragmentId
=
info
.
fragId
;
...
@@ -13686,6 +13726,14 @@ Dbdih::execDUMP_STATE_ORD(Signal* signal)
...
@@ -13686,6 +13726,14 @@ Dbdih::execDUMP_STATE_ORD(Signal* signal)
(
"immediateLcpStart = %d masterLcpNodeId = %d"
,
(
"immediateLcpStart = %d masterLcpNodeId = %d"
,
c_lcpState
.
immediateLcpStart
,
c_lcpState
.
immediateLcpStart
,
refToNode
(
c_lcpState
.
m_masterLcpDihRef
));
refToNode
(
c_lcpState
.
m_masterLcpDihRef
));
for
(
Uint32
i
=
0
;
i
<
10
;
i
++
)
{
infoEvent
(
"%u : status: %u place: %u"
,
i
,
c_lcpState
.
m_saveState
[
i
].
m_status
,
c_lcpState
.
m_saveState
[
i
].
m_place
);
}
infoEvent
(
"-- Node %d LCP STATE --"
,
getOwnNodeId
());
infoEvent
(
"-- Node %d LCP STATE --"
,
getOwnNodeId
());
}
}
...
...
ndb/src/ndbapi/NdbOperationDefine.cpp
View file @
b8ecfef8
...
@@ -570,15 +570,32 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
...
@@ -570,15 +570,32 @@ NdbOperation::setValue( const NdbColumnImpl* tAttrInfo,
* If it is not aligned then we start by copying the value to tempData and
* If it is not aligned then we start by copying the value to tempData and
* use this as aValue instead.
* use this as aValue instead.
*************************************************************************/
*************************************************************************/
const
int
attributeSize
=
sizeInBytes
;
int
attributeSize
=
sizeInBytes
;
const
int
slack
=
sizeInBytes
&
3
;
int
slack
=
(
sizeInBytes
&
3
)
?
4
-
(
sizeInBytes
&
3
)
:
0
;
switch
(
tAttrInfo
->
m_type
){
case
NdbDictionary
:
:
Column
::
Varchar
:
case
NdbDictionary
:
:
Column
::
Varbinary
:
attributeSize
=
1
+
*
(
Uint8
*
)
aValue
;
slack
=
4
*
totalSizeInWords
-
attributeSize
;
break
;
case
NdbDictionary
:
:
Column
::
Longvarchar
:
case
NdbDictionary
:
:
Column
::
Longvarbinary
:
{
const
Uint8
*
ptr
=
(
const
Uint8
*
)
aValue
;
attributeSize
=
2
+
ptr
[
0
]
+
256
*
ptr
[
1
];
slack
=
4
*
totalSizeInWords
-
attributeSize
;
break
;
}
}
if
(((
UintPtr
)
aValue
&
3
)
!=
0
||
(
slack
!=
0
)){
if
(((
UintPtr
)
aValue
&
3
)
!=
0
||
(
slack
!=
0
))
memcpy
(
&
tempData
[
0
],
aValue
,
attributeSize
);
{
aValue
=
(
char
*
)
&
tempData
[
0
];
char
*
tmp
=
(
char
*
)
tempData
;
if
(
slack
!=
0
)
{
memcpy
(
tmp
,
aValue
,
attributeSize
);
char
*
tmp
=
(
char
*
)
&
tempData
[
0
];
aValue
=
tmp
;
memset
(
&
tmp
[
attributeSize
],
0
,
(
4
-
slack
));
if
(
slack
!=
0
)
{
bzero
(
tmp
+
attributeSize
,
slack
);
}
//if
}
//if
}
//if
}
//if
...
...
ndb/src/ndbapi/NdbOperationSearch.cpp
View file @
b8ecfef8
...
@@ -129,6 +129,7 @@ NdbOperation::equal_impl(const NdbColumnImpl* tAttrInfo,
...
@@ -129,6 +129,7 @@ NdbOperation::equal_impl(const NdbColumnImpl* tAttrInfo,
OperationType
tOpType
=
theOperationType
;
OperationType
tOpType
=
theOperationType
;
Uint32
sizeInBytes
=
tAttrInfo
->
m_attrSize
*
tAttrInfo
->
m_arraySize
;
Uint32
sizeInBytes
=
tAttrInfo
->
m_attrSize
*
tAttrInfo
->
m_arraySize
;
const
Uint32
totalSizeInWords
=
(
sizeInBytes
+
3
)
/
4
;
Uint32
real_len
;
Uint32
real_len
;
if
(
!
tAttrInfo
->
get_var_length
(
aValue
,
real_len
))
{
if
(
!
tAttrInfo
->
get_var_length
(
aValue
,
real_len
))
{
...
@@ -150,20 +151,35 @@ NdbOperation::equal_impl(const NdbColumnImpl* tAttrInfo,
...
@@ -150,20 +151,35 @@ NdbOperation::equal_impl(const NdbColumnImpl* tAttrInfo,
* aValue. If it is not aligned then we start by copying the value to
* aValue. If it is not aligned then we start by copying the value to
* tempData and use this as aValue instead.
* tempData and use this as aValue instead.
***********************************************************************/
***********************************************************************/
const
int
attributeSize
=
sizeInBytes
;
int
attributeSize
=
sizeInBytes
;
const
int
slack
=
sizeInBytes
&
3
;
int
slack
=
(
sizeInBytes
&
3
)
?
4
-
(
sizeInBytes
&
3
)
:
0
;
const
int
align
=
UintPtr
(
aValue
)
&
7
;
const
int
align
=
UintPtr
(
aValue
)
&
7
;
switch
(
tAttrInfo
->
m_type
){
case
NdbDictionary
:
:
Column
::
Varchar
:
case
NdbDictionary
:
:
Column
::
Varbinary
:
attributeSize
=
1
+
*
(
Uint8
*
)
aValue
;
slack
=
4
*
totalSizeInWords
-
attributeSize
;
break
;
case
NdbDictionary
:
:
Column
::
Longvarchar
:
case
NdbDictionary
:
:
Column
::
Longvarbinary
:
{
const
Uint8
*
ptr
=
(
const
Uint8
*
)
aValue
;
attributeSize
=
2
+
ptr
[
0
]
+
256
*
ptr
[
1
];
slack
=
4
*
totalSizeInWords
-
attributeSize
;
break
;
}
}
if
(((
align
&
3
)
!=
0
)
||
(
slack
!=
0
)
||
(
tDistrKey
&&
(
align
!=
0
)))
if
(((
align
&
3
)
!=
0
)
||
(
slack
!=
0
)
||
(
tDistrKey
&&
(
align
!=
0
)))
{
{
((
Uint32
*
)
tempData
)[
attributeSize
>>
2
]
=
0
;
char
*
tmp
=
(
char
*
)
tempData
;
memcpy
(
&
tempData
[
0
],
aValue
,
attributeSize
);
memcpy
(
tmp
,
aValue
,
attributeSize
);
aValue
=
(
char
*
)
&
tempData
[
0
];
aValue
=
tmp
;
bzero
(
tmp
+
attributeSize
,
slack
);
}
//if
}
//if
}
}
Uint32
totalSizeInWords
=
(
sizeInBytes
+
3
)
/
4
;
// Inc. bits in last word
if
(
true
){
//tArraySize != 0) {
if
(
true
){
//tArraySize != 0) {
Uint32
tTupKeyLen
=
theTupKeyLen
;
Uint32
tTupKeyLen
=
theTupKeyLen
;
...
...
ndb/test/ndbapi/testNodeRestart.cpp
View file @
b8ecfef8
...
@@ -1347,6 +1347,51 @@ runBug28717(NDBT_Context* ctx, NDBT_Step* step)
...
@@ -1347,6 +1347,51 @@ runBug28717(NDBT_Context* ctx, NDBT_Step* step)
return
NDBT_OK
;
return
NDBT_OK
;
}
}
int
runBug32160
(
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
master
=
res
.
getMasterNodeId
();
int
next
=
res
.
getNextMasterNodeId
(
master
);
if
(
res
.
insertErrorInNode
(
next
,
7194
))
{
return
NDBT_FAILED
;
}
int
val2
[]
=
{
DumpStateOrd
::
CmvmiSetRestartOnErrorInsert
,
1
};
if
(
res
.
dumpStateOneNode
(
master
,
val2
,
2
))
return
NDBT_FAILED
;
if
(
res
.
insertErrorInNode
(
master
,
7193
))
return
NDBT_FAILED
;
int
val3
[]
=
{
7099
};
if
(
res
.
dumpStateOneNode
(
master
,
val3
,
1
))
return
NDBT_FAILED
;
if
(
res
.
waitNodesNoStart
(
&
master
,
1
))
return
NDBT_FAILED
;
if
(
res
.
startNodes
(
&
master
,
1
))
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 "
\
...
@@ -1686,6 +1731,9 @@ TESTCASE("Bug28717", ""){
...
@@ -1686,6 +1731,9 @@ TESTCASE("Bug28717", ""){
TESTCASE
(
"Bug29364"
,
""
){
TESTCASE
(
"Bug29364"
,
""
){
INITIALIZER
(
runBug29364
);
INITIALIZER
(
runBug29364
);
}
}
TESTCASE
(
"Bug32160"
,
""
){
INITIALIZER
(
runBug32160
);
}
NDBT_TESTSUITE_END
(
testNodeRestart
);
NDBT_TESTSUITE_END
(
testNodeRestart
);
int
main
(
int
argc
,
const
char
**
argv
){
int
main
(
int
argc
,
const
char
**
argv
){
...
...
ndb/test/run-test/daily-basic-tests.txt
View file @
b8ecfef8
...
@@ -497,6 +497,10 @@ max-time: 1000
...
@@ -497,6 +497,10 @@ max-time: 1000
cmd: testNodeRestart
cmd: testNodeRestart
args: -n Bug26481 T1
args: -n Bug26481 T1
max-time: 300
cmd: testNodeRestart
args: -n Bug32160 T1
# OLD FLEX
# OLD FLEX
max-time: 500
max-time: 500
cmd: flexBench
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