Skip to content

Commit 74278f5

Browse files
committed
IGNITE-23919 Remove DurableBackgroundCleanupIndexTreeTask and related code
1 parent 7596a31 commit 74278f5

File tree

8 files changed

+3
-536
lines changed

8 files changed

+3
-536
lines changed

modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/DurableBackgroundCleanupIndexTreeTask.java

-322
This file was deleted.

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/metastorage/pendingtask/DurableBackgroundTask.java

-9
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,4 @@ public interface DurableBackgroundTask<R> extends Serializable {
4747
* @return Future of the tasks.
4848
*/
4949
IgniteInternalFuture<DurableBackgroundTaskResult<R>> executeAsync(GridKernalContext ctx);
50-
51-
/**
52-
* Converting the current task to another after restoring from metaStorage.
53-
*
54-
* @return Converted task.
55-
*/
56-
default DurableBackgroundTask<?> convertAfterRestoreIfNeeded() {
57-
return this;
58-
}
5950
}

modules/core/src/main/java/org/apache/ignite/internal/processors/localtask/DurableBackgroundTaskState.java

+1-15
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,6 @@ public enum State {
6666
/** Current state of the task. */
6767
private volatile State state = INIT;
6868

69-
/** Converted from another task. */
70-
private final boolean converted;
71-
7269
/**
7370
* Constructor.
7471
*
@@ -79,13 +76,11 @@ public enum State {
7976
public DurableBackgroundTaskState(
8077
DurableBackgroundTask<R> task,
8178
GridFutureAdapter<R> outFut,
82-
boolean saved,
83-
boolean converted
79+
boolean saved
8480
) {
8581
this.task = task;
8682
this.outFut = outFut;
8783
this.saved = saved;
88-
this.converted = converted;
8984
}
9085

9186
/**
@@ -144,15 +139,6 @@ public boolean state(State exp, State newState) {
144139
return STATE_UPDATER.compareAndSet(this, exp, newState);
145140
}
146141

147-
/**
148-
* Check if the task has been converted from another.
149-
*
150-
* @return {@code True} if it was converted from another task.
151-
*/
152-
public boolean converted() {
153-
return converted;
154-
}
155-
156142
/** {@inheritDoc} */
157143
@Override public String toString() {
158144
return S.toString(DurableBackgroundTaskState.class, this);

0 commit comments

Comments
 (0)