mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.0' into cassandra-4.1
* cassandra-4.0: Long running repairs autofail prematurely
This commit is contained in:
commit
fc232f45f0
|
|
@ -1027,6 +1027,7 @@ public class LocalSessions
|
|||
}
|
||||
else
|
||||
{
|
||||
session.setLastUpdate();
|
||||
logger.debug("Received StatusResponse for repair session {} with state {}, which is not actionable. Doing nothing.", sessionID, response.state);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -685,8 +685,11 @@ public class LocalSessionTest extends AbstractRepairTest
|
|||
sessions.start();
|
||||
LocalSession session = sessions.prepareForTest(sessionID);
|
||||
session.setState(REPAIRING);
|
||||
int lastUpdatedOriginal = session.getLastUpdate();
|
||||
Thread.sleep(1100);
|
||||
|
||||
sessions.handleStatusResponse(PARTICIPANT1, new StatusResponse(sessionID, FINALIZE_PROMISED));
|
||||
Assert.assertNotEquals(lastUpdatedOriginal, session.getLastUpdate());
|
||||
Assert.assertEquals(REPAIRING, session.getState());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue