Skip to content

Commit a267f94

Browse files
committed
1 parent 8e85740 commit a267f94

File tree

20 files changed

+74
-66
lines changed

20 files changed

+74
-66
lines changed

modules/control-utility/src/test/java/org/apache/ignite/util/SystemViewCommandTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
import org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager;
7272
import org.apache.ignite.internal.processors.metastorage.DistributedMetaStorage;
7373
import org.apache.ignite.internal.processors.service.DummyService;
74-
import org.apache.ignite.internal.util.StripedExecutor;
74+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
7575
import org.apache.ignite.internal.util.typedef.F;
7676
import org.apache.ignite.internal.util.typedef.G;
7777
import org.apache.ignite.internal.util.typedef.internal.U;
@@ -833,7 +833,7 @@ public void testStreamerExecutor() throws Exception {
833833
* @param view System view name.
834834
* @param poolName Executor name.
835835
*/
836-
private void checkStripeExecutorView(StripedExecutor execSvc, String view, String poolName) throws Exception {
836+
private void checkStripeExecutorView(IgniteStripedExecutor execSvc, String view, String poolName) throws Exception {
837837
CountDownLatch latch = new CountDownLatch(1);
838838

839839
execSvc.execute(0, new TestRunnable(latch, 0));

modules/core/src/main/java/org/apache/ignite/IgniteSystemProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@
130130
import static org.apache.ignite.internal.processors.rest.GridRestProcessor.DFLT_SES_TIMEOUT;
131131
import static org.apache.ignite.internal.processors.rest.GridRestProcessor.DFLT_SES_TOKEN_INVALIDATE_INTERVAL;
132132
import static org.apache.ignite.internal.processors.rest.handlers.task.GridTaskCommandHandler.DFLT_MAX_TASK_RESULTS;
133+
import static org.apache.ignite.internal.thread.IgniteStripedExecutor.DFLT_DATA_STREAMING_EXECUTOR_SERVICE_TASKS_STEALING_THRESHOLD;
133134
import static org.apache.ignite.internal.util.GridReflectionCache.DFLT_REFLECTION_CACHE_SIZE;
134135
import static org.apache.ignite.internal.util.IgniteExceptionRegistry.DEFAULT_QUEUE_SIZE;
135136
import static org.apache.ignite.internal.util.IgniteUtils.DFLT_MBEAN_APPEND_CLASS_LOADER_ID;
136-
import static org.apache.ignite.internal.util.StripedExecutor.DFLT_DATA_STREAMING_EXECUTOR_SERVICE_TASKS_STEALING_THRESHOLD;
137137
import static org.apache.ignite.internal.util.nio.GridNioRecoveryDescriptor.DFLT_NIO_RECOVERY_DESCRIPTOR_RESERVATION_TIMEOUT;
138138
import static org.apache.ignite.internal.util.nio.GridNioServer.DFLT_IO_BALANCE_PERIOD;
139139
import static org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi.DFLT_DISCOVERY_CLIENT_RECONNECT_HISTORY_SIZE;

modules/core/src/main/java/org/apache/ignite/internal/IgniteKernal.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
import org.apache.ignite.internal.suggestions.GridPerformanceSuggestions;
174174
import org.apache.ignite.internal.suggestions.JvmConfigurationSuggestions;
175175
import org.apache.ignite.internal.suggestions.OsConfigurationSuggestions;
176-
import org.apache.ignite.internal.util.StripedExecutor;
176+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
177177
import org.apache.ignite.internal.util.TimeBag;
178178
import org.apache.ignite.internal.util.future.GridCompoundFuture;
179179
import org.apache.ignite.internal.util.future.GridFinishedFuture;
@@ -1335,8 +1335,8 @@ private String createExecutorDescription(String execSvcName, ExecutorService exe
13351335
poolActiveThreads = Math.min(poolSize, exec.getActiveCount());
13361336
poolQSize = exec.getQueue().size();
13371337
}
1338-
else if (execSvc instanceof StripedExecutor) {
1339-
StripedExecutor exec = (StripedExecutor)execSvc;
1338+
else if (execSvc instanceof IgniteStripedExecutor) {
1339+
IgniteStripedExecutor exec = (IgniteStripedExecutor)execSvc;
13401340

13411341
poolSize = exec.stripesCount();
13421342
poolActiveThreads = exec.activeStripesCount();

modules/core/src/main/java/org/apache/ignite/internal/plugin/IgniteLogInfoProviderImpl.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
import org.apache.ignite.internal.processors.cache.persistence.DataRegion;
5757
import org.apache.ignite.internal.processors.cache.persistence.IgniteCacheDatabaseSharedManager;
5858
import org.apache.ignite.internal.processors.port.GridPortRecord;
59-
import org.apache.ignite.internal.util.StripedExecutor;
59+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
6060
import org.apache.ignite.internal.util.typedef.F;
6161
import org.apache.ignite.internal.util.typedef.internal.CU;
6262
import org.apache.ignite.internal.util.typedef.internal.S;
@@ -785,8 +785,8 @@ String createExecutorDescription(String execSvcName, ExecutorService execSvc) {
785785
poolActiveThreads = Math.min(poolSize, exec.getActiveCount());
786786
poolQSize = exec.getQueue().size();
787787
}
788-
else if (execSvc instanceof StripedExecutor) {
789-
StripedExecutor exec = (StripedExecutor)execSvc;
788+
else if (execSvc instanceof IgniteStripedExecutor) {
789+
IgniteStripedExecutor exec = (IgniteStripedExecutor)execSvc;
790790

791791
poolSize = exec.stripesCount();
792792
poolActiveThreads = exec.activeStripesCount();

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/CacheStripedExecutor.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@
2121
import java.util.concurrent.atomic.AtomicReference;
2222
import org.apache.ignite.IgniteCheckedException;
2323
import org.apache.ignite.IgniteInterruptedException;
24-
import org.apache.ignite.internal.util.StripedExecutor;
24+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
2525
import org.apache.ignite.internal.util.typedef.internal.U;
2626

2727
import static org.apache.ignite.IgniteSystemProperties.IGNITE_RECOVERY_SEMAPHORE_PERMITS;
2828
import static org.apache.ignite.IgniteSystemProperties.getInteger;
2929
import static org.apache.ignite.internal.processors.cache.persistence.checkpoint.CheckpointReadWriteLock.CHECKPOINT_LOCK_HOLD_COUNT;
3030

31-
/** Wrapper over {@link StripedExecutor}, that groups submitted tasks by cache group and partition. */
31+
/** Wrapper over {@link IgniteStripedExecutor}, that groups submitted tasks by cache group and partition. */
3232
public class CacheStripedExecutor {
3333
/** Error appeared during submitted task execution. */
3434
private final AtomicReference<IgniteCheckedException> error = new AtomicReference<>();
3535

3636
/** Delegate striped executor. */
37-
private final StripedExecutor exec;
37+
private final IgniteStripedExecutor exec;
3838

3939
/** Limit number of concurrent tasks submitted to the executor. Helps to avoid OOM error. */
4040
private final Semaphore semaphore;
4141

4242
/** */
43-
public CacheStripedExecutor(StripedExecutor exec) {
43+
public CacheStripedExecutor(IgniteStripedExecutor exec) {
4444
this.exec = exec;
4545

4646
semaphore = new Semaphore(semaphorePermits(exec));
@@ -117,7 +117,7 @@ public void onError(IgniteCheckedException e) {
117117
}
118118

119119
/** @return Underlying striped executor. */
120-
public StripedExecutor executor() {
120+
public IgniteStripedExecutor executor() {
121121
return exec;
122122
}
123123

@@ -127,7 +127,7 @@ public StripedExecutor executor() {
127127
* @param exec Striped executor.
128128
* @return Number of permits.
129129
*/
130-
private int semaphorePermits(StripedExecutor exec) {
130+
private int semaphorePermits(IgniteStripedExecutor exec) {
131131
// 4 task per-stripe by default.
132132
int permits = exec.stripesCount() * 4;
133133

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/GridCacheDatabaseSharedManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@
137137
import org.apache.ignite.internal.processors.configuration.distributed.SimpleDistributedProperty;
138138
import org.apache.ignite.internal.processors.port.GridPortRecord;
139139
import org.apache.ignite.internal.processors.query.GridQueryProcessor;
140+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
140141
import org.apache.ignite.internal.util.GridConcurrentHashSet;
141142
import org.apache.ignite.internal.util.GridCountDownCallback;
142143
import org.apache.ignite.internal.util.IgniteUtils;
143-
import org.apache.ignite.internal.util.StripedExecutor;
144144
import org.apache.ignite.internal.util.TimeBag;
145145
import org.apache.ignite.internal.util.future.CountDownFuture;
146146
import org.apache.ignite.internal.util.future.GridFutureAdapter;
@@ -2911,7 +2911,7 @@ private void finalizeCheckpointOnRecovery(
29112911
long cpTs,
29122912
UUID cpId,
29132913
WALPointer walPtr,
2914-
StripedExecutor exec
2914+
IgniteStripedExecutor exec
29152915
) throws IgniteCheckedException {
29162916
assert checkpointManager != null : "Checkpoint is null";
29172917

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/checkpoint/CheckpointManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
import org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl;
4545
import org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer;
4646
import org.apache.ignite.internal.processors.failure.FailureProcessor;
47-
import org.apache.ignite.internal.util.StripedExecutor;
47+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
4848
import org.apache.ignite.internal.util.lang.IgniteThrowableBiPredicate;
4949
import org.apache.ignite.internal.util.lang.IgniteThrowableFunction;
5050
import org.apache.ignite.internal.worker.WorkersRegistry;
@@ -381,7 +381,7 @@ public void finalizeCheckpointOnRecovery(
381381
long ts,
382382
UUID id,
383383
WALPointer ptr,
384-
StripedExecutor exec
384+
IgniteStripedExecutor exec
385385
) throws IgniteCheckedException {
386386
assert checkpointer != null : "Checkpointer hasn't initialized yet";
387387

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/checkpoint/CheckpointWorkflow.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@
6262
import org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryEx;
6363
import org.apache.ignite.internal.processors.cache.persistence.partstate.PartitionAllocationMap;
6464
import org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer;
65+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
6566
import org.apache.ignite.internal.thread.IgniteThreadPoolExecutor;
6667
import org.apache.ignite.internal.util.GridConcurrentHashSet;
6768
import org.apache.ignite.internal.util.GridConcurrentMultiPairQueue;
6869
import org.apache.ignite.internal.util.GridMultiCollectionWrapper;
69-
import org.apache.ignite.internal.util.StripedExecutor;
7070
import org.apache.ignite.internal.util.function.ThrowableSupplier;
7171
import org.apache.ignite.internal.util.future.GridCompoundFuture;
7272
import org.apache.ignite.internal.util.future.GridFutureAdapter;
@@ -619,7 +619,7 @@ public void finalizeCheckpointOnRecovery(
619619
long cpTs,
620620
UUID cpId,
621621
WALPointer walPtr,
622-
StripedExecutor exec,
622+
IgniteStripedExecutor exec,
623623
CheckpointPagesWriterFactory checkpointPagesWriterFactory
624624
) throws IgniteCheckedException {
625625
assert cpTs != 0;
@@ -682,7 +682,7 @@ public void finalizeCheckpointOnRecovery(
682682
* @param applyError Check error reference.
683683
*/
684684
private void awaitApplyComplete(
685-
StripedExecutor exec,
685+
IgniteStripedExecutor exec,
686686
AtomicReference<Throwable> applyError
687687
) throws IgniteCheckedException {
688688
try {

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/checkpoint/Checkpointer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@
5656
import org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer;
5757
import org.apache.ignite.internal.processors.failure.FailureProcessor;
5858
import org.apache.ignite.internal.processors.performancestatistics.PerformanceStatisticsProcessor;
59+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
5960
import org.apache.ignite.internal.thread.IgniteThreadPoolExecutor;
6061
import org.apache.ignite.internal.util.GridConcurrentMultiPairQueue;
61-
import org.apache.ignite.internal.util.StripedExecutor;
6262
import org.apache.ignite.internal.util.future.CountDownFuture;
6363
import org.apache.ignite.internal.util.future.GridFutureAdapter;
6464
import org.apache.ignite.internal.util.typedef.internal.LT;
@@ -1085,7 +1085,7 @@ public void finalizeCheckpointOnRecovery(
10851085
long cpTs,
10861086
UUID cpId,
10871087
WALPointer walPtr,
1088-
StripedExecutor exec
1088+
IgniteStripedExecutor exec
10891089
) throws IgniteCheckedException {
10901090
checkpointWorkflow.finalizeCheckpointOnRecovery(cpTs, cpId, walPtr, exec, checkpointPagesWriterFactory);
10911091
}

modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/checkpoint/LightweightCheckpointManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
import org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMemoryImpl;
3939
import org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer;
4040
import org.apache.ignite.internal.processors.failure.FailureProcessor;
41-
import org.apache.ignite.internal.util.StripedExecutor;
41+
import org.apache.ignite.internal.thread.IgniteStripedExecutor;
4242
import org.apache.ignite.internal.util.lang.IgniteThrowableFunction;
4343
import org.apache.ignite.internal.worker.WorkersRegistry;
4444
import org.apache.ignite.lang.IgniteInClosure;
@@ -267,7 +267,7 @@ public void finalizeCheckpointOnRecovery(
267267
long ts,
268268
UUID id,
269269
WALPointer ptr,
270-
StripedExecutor exec
270+
IgniteStripedExecutor exec
271271
) throws IgniteCheckedException {
272272
assert checkpointer != null : "Checkpointer hasn't initialized yet";
273273

0 commit comments

Comments
 (0)