Commit b62b8dc3 authored by Julien Muchembled's avatar Julien Muchembled

spelling: oudated -> outdated

parent 6e32ebb7
......@@ -85,7 +85,7 @@ class StorageServiceHandler(BaseServiceHandler):
try:
cell_list = self.app.pt.setUpToDate(node, offset)
if not cell_list:
raise ProtocolError('Non-oudated partition')
raise ProtocolError('Non-outdated partition')
except PartitionTableException, e:
raise ProtocolError(str(e))
logging.debug("%s is up for offset %s", node, offset)
......
......@@ -573,12 +573,12 @@ class NEOCluster(object):
def expectOudatedCells(self, number, *args, **kw):
def callback(last_try):
row_list = self.neoctl.getPartitionRowList()[1]
number_of_oudated = 0
number_of_outdated = 0
for row in row_list:
for cell in row[1]:
if cell[1] == CellStates.OUT_OF_DATE:
number_of_oudated += 1
return number_of_oudated == number, number_of_oudated
number_of_outdated += 1
return number_of_outdated == number, number_of_outdated
self.expectCondition(callback, *args, **kw)
def expectAssignedCells(self, process, number, *args, **kw):
......
......@@ -157,7 +157,7 @@ class StorageTests(NEOFunctionalTest):
self.neo.expectClusterRunning()
def testOudatedCellsOnDownStorage(self):
""" Check that the storage cells are set as oudated when the node is
""" Check that the storage cells are set as outdated when the node is
down, the cluster remains up since there is a replica """
# populate the two storages
......@@ -444,7 +444,7 @@ class StorageTests(NEOFunctionalTest):
st.tpc_begin(t)
st.store(oid, rev, data, '', t)
# start the oudated storage
# start the outdated storage
stopped[0].start()
self.neo.expectPending(stopped[0])
self.neo.neoctl.enableStorageList([stopped[0].getUUID()])
......
......@@ -94,18 +94,18 @@ class ReplicationBenchmark(BenchmarkRunner):
return self.buildReport(p_time, r_time), content
def replicate(self, neo):
def number_of_oudated_cell():
def number_of_outdated_cell():
row_list = neo.neoctl.getPartitionRowList()[1]
number_of_oudated = 0
number_of_outdated = 0
for row in row_list:
for cell in row[1]:
if cell[1] == CellStates.OUT_OF_DATE:
number_of_oudated += 1
return number_of_oudated
number_of_outdated += 1
return number_of_outdated
end_time = time.time() + 3600
while time.time() <= end_time and number_of_oudated_cell() > 0:
while time.time() <= end_time and number_of_outdated_cell() > 0:
time.sleep(1)
if number_of_oudated_cell() > 0:
if number_of_outdated_cell() > 0:
raise Exception('Replication takes too long')
def buildReport(self, p_time, r_time):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment