MINOR: Move `ControllerPurgatory` to `server-common` (#13555)
This patch renames from `ControllerPurgatory` to `DeferredEventQueue` and moves it from the `metadata` module to `server-common` module.
Reviewers: Alexandre Dupriez <alexandre.dupriez@gmail.com>, Ziming Deng <dengziming1993@gmail.com>, José Armando García Sancio <jsancio@apache.org>
@ -667,7 +669,7 @@ public final class QuorumController implements Controller {
@@ -667,7 +669,7 @@ public final class QuorumController implements Controller {
// If the operation did not return any records, then it was actually just
// a read after all, and not a read + write. However, this read was done
// from the latest in-memory state, which might contain uncommitted data.
// If the purgatory is empty, there are no pending operations and no
// uncommitted state. We can complete immediately.
@ -726,7 +728,7 @@ public final class QuorumController implements Controller {
@@ -726,7 +728,7 @@ public final class QuorumController implements Controller {
// Remember the latest offset and future if it is not already completed
@ -906,7 +908,7 @@ public final class QuorumController implements Controller {
@@ -906,7 +908,7 @@ public final class QuorumController implements Controller {
log.debug("Completing purgatory items up to offset {} and epoch {}.",offset,epoch);
// Complete any events in the purgatory that were waiting for this offset.
purgatory.completeUpTo(offset);
deferredEventQueue.completeUpTo(offset);
// The active controller can delete up to the current committed offset.
snapshotRegistry.deleteSnapshotsUpTo(offset);
@ -1185,7 +1187,7 @@ public final class QuorumController implements Controller {
@@ -1185,7 +1187,7 @@ public final class QuorumController implements Controller {
thrownewRuntimeException("Unable to find last committed offset "+
@ -1483,10 +1485,10 @@ public final class QuorumController implements Controller {
@@ -1483,10 +1485,10 @@ public final class QuorumController implements Controller {
@ -1684,7 +1686,7 @@ public final class QuorumController implements Controller {
@@ -1684,7 +1686,7 @@ public final class QuorumController implements Controller {