mirror of https://github.com/apache/cassandra
Merge branch 'cassandra-4.1' into cassandra-5.0
* cassandra-4.1: Long running repairs autofail prematurely
This commit is contained in:
commit
026f73eacb
|
|
@ -1072,6 +1072,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -699,8 +699,11 @@ public class LocalSessionTest extends AbstractRepairTest
|
|||
sessions.start();
|
||||
LocalSession session = sessions.prepareForTest(sessionID);
|
||||
session.setState(REPAIRING);
|
||||
long 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