Commit b62b8dc3 authored by Julien Muchembled's avatar Julien Muchembled

spelling: oudated -> outdated

parent 6e32ebb7
...@@ -85,7 +85,7 @@ class StorageServiceHandler(BaseServiceHandler): ...@@ -85,7 +85,7 @@ class StorageServiceHandler(BaseServiceHandler):
try: try:
cell_list = self.app.pt.setUpToDate(node, offset) cell_list = self.app.pt.setUpToDate(node, offset)
if not cell_list: if not cell_list:
raise ProtocolError('Non-oudated partition') raise ProtocolError('Non-outdated partition')
except PartitionTableException, e: except PartitionTableException, e:
raise ProtocolError(str(e)) raise ProtocolError(str(e))
logging.debug("%s is up for offset %s", node, offset) logging.debug("%s is up for offset %s", node, offset)
......
...@@ -573,12 +573,12 @@ class NEOCluster(object): ...@@ -573,12 +573,12 @@ class NEOCluster(object):
def expectOudatedCells(self, number, *args, **kw): def expectOudatedCells(self, number, *args, **kw):
def callback(last_try): def callback(last_try):
row_list = self.neoctl.getPartitionRowList()[1] row_list = self.neoctl.getPartitionRowList()[1]
number_of_oudated = 0 number_of_outdated = 0
for row in row_list: for row in row_list:
for cell in row[1]: for cell in row[1]:
if cell[1] == CellStates.OUT_OF_DATE: if cell[1] == CellStates.OUT_OF_DATE:
number_of_oudated += 1 number_of_outdated += 1
return number_of_oudated == number, number_of_oudated return number_of_outdated == number, number_of_outdated
self.expectCondition(callback, *args, **kw) self.expectCondition(callback, *args, **kw)
def expectAssignedCells(self, process, number, *args, **kw): def expectAssignedCells(self, process, number, *args, **kw):
......
...@@ -157,7 +157,7 @@ class StorageTests(NEOFunctionalTest): ...@@ -157,7 +157,7 @@ class StorageTests(NEOFunctionalTest):
self.neo.expectClusterRunning() self.neo.expectClusterRunning()
def testOudatedCellsOnDownStorage(self): 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 """ down, the cluster remains up since there is a replica """
# populate the two storages # populate the two storages
...@@ -444,7 +444,7 @@ class StorageTests(NEOFunctionalTest): ...@@ -444,7 +444,7 @@ class StorageTests(NEOFunctionalTest):
st.tpc_begin(t) st.tpc_begin(t)
st.store(oid, rev, data, '', t) st.store(oid, rev, data, '', t)
# start the oudated storage # start the outdated storage
stopped[0].start() stopped[0].start()
self.neo.expectPending(stopped[0]) self.neo.expectPending(stopped[0])
self.neo.neoctl.enableStorageList([stopped[0].getUUID()]) self.neo.neoctl.enableStorageList([stopped[0].getUUID()])
......
...@@ -94,18 +94,18 @@ class ReplicationBenchmark(BenchmarkRunner): ...@@ -94,18 +94,18 @@ class ReplicationBenchmark(BenchmarkRunner):
return self.buildReport(p_time, r_time), content return self.buildReport(p_time, r_time), content
def replicate(self, neo): def replicate(self, neo):
def number_of_oudated_cell(): def number_of_outdated_cell():
row_list = neo.neoctl.getPartitionRowList()[1] row_list = neo.neoctl.getPartitionRowList()[1]
number_of_oudated = 0 number_of_outdated = 0
for row in row_list: for row in row_list:
for cell in row[1]: for cell in row[1]:
if cell[1] == CellStates.OUT_OF_DATE: if cell[1] == CellStates.OUT_OF_DATE:
number_of_oudated += 1 number_of_outdated += 1
return number_of_oudated return number_of_outdated
end_time = time.time() + 3600 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) time.sleep(1)
if number_of_oudated_cell() > 0: if number_of_outdated_cell() > 0:
raise Exception('Replication takes too long') raise Exception('Replication takes too long')
def buildReport(self, p_time, r_time): 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