public static class MetadataService.DropScaleOutIndexTask extends AbstractTask
Since this task is unisolated, it basically has a lock on the writable version of the metadata index. It drops each index partition and finally drops the metadata index itself.
Historical reads against the metadata index will continue to succeed both
during and after this operation has completed successfully. However,
ITx.READ_COMMITTED operations will succeed only until this
operation completes at which point the scale-out index will no longer be
visible.
The data comprising the scale-out index will remain available for
historical reads until it is released by whatever policy is in effect for
the ResourceManagers for the DataServices on which that
data resides.
AbstractTask.DelegateTask<T>, AbstractTask.InnerReadWriteTxServiceCallable<T>, AbstractTask.InnerWriteServiceCallable<T>, AbstractTask.ResubmitExceptioncheckpointNanoTime, concurrencyManager, isReadWriteTx, log, nanoTime_assignedWorker, nanoTime_beginWork, nanoTime_finishedWork, nanoTime_submitTask, readOnly, resourceManager, taskCounters, timestamp, transactionManager, tx| Modifier | Constructor and Description |
|---|---|
protected |
MetadataService.DropScaleOutIndexTask(IBigdataFederation fed,
ConcurrencyManager concurrencyManager,
String name) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
doTask()
Drops the index partitions and then drops the metadata index as well.
|
assertResource, assertRunning, assertUnisolated, call, clearLoggingContext, dropIndex, getCommitTime, getIndex, getJournal, getOnlyResource, getResource, getResourceManager, getTaskCounters, getTaskName, getTimestamp, isResource, registerIndex, setupLoggingContext, toStringprotected MetadataService.DropScaleOutIndexTask(IBigdataFederation fed, ConcurrencyManager concurrencyManager, String name)
concurrencyManager - name - The name of the metadata index for some scale-out index.protected Object doTask() throws Exception
doTask in class AbstractTaskInteger #of index partitions that were dropped.Exception - The exception that will be thrown by AbstractTask.call() iff the
operation fails.InterruptedException - This exception SHOULD be thrown if
Thread.interrupted() becomes true during
execution.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.