Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-21835 MVCC removal: final cleanup #11330

Merged
merged 24 commits into from
May 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
872a698
IGNITE-21835 Cleanup CacheDataRowAdapter#RowData
shishkovilja Apr 24, 2024
d7c39b2
IGNITE-21835 WIP: remove MvccUtils.
shishkovilja Apr 25, 2024
6155aa4
IGNITE-21835 Remove MvccUtils.
shishkovilja May 7, 2024
ca3c6ab
IGNITE-21835 Remove MVCC_TX_RECOVERY_PROTOCOL_V2 feature.
shishkovilja May 8, 2024
e2b6748
IGNITE-21835 Remove MarshalledDataEntry.
shishkovilja May 8, 2024
783c7f5
IGNITE-21835 Remove UnwrappedDataEntry.
shishkovilja May 8, 2024
e80c5d7
IGNITE-21835 WIP: CacheContinuousQueryManager, CacheGroupContext, Gri…
shishkovilja May 8, 2024
378aa8a
IGNITE-21835 WIP: CacheInvokeEntry, GridDhtColocatedCache, GridCacheA…
shishkovilja May 8, 2024
9854ab2
IGNITE-21835 WIP: TxCounters, PartitionUpdateCountersMessage, GridDht…
shishkovilja May 14, 2024
ca05cb0
IGNITE-21835 Remove queryUpdate flag.
shishkovilja May 15, 2024
f6ea8c8
IGNITE-21835 WIP: GridNearPessimisticTxPrepareFuture, remove Partitio…
shishkovilja May 15, 2024
4ad0efc
IGNITE-21835 WIP: CacheContinuousQueryHandler, remove TransactionUnsu…
shishkovilja May 16, 2024
fc0704f
IGNITE-21835 WIP: IgniteTxManager, DmlDistributedPlanInfo.
shishkovilja May 16, 2024
4a31f07
IGNITE-21835 WIP: Remove C++ MVCC SQL status codes.
shishkovilja May 17, 2024
4c9b9b2
IGNITE-21835 WIP: Remove IgnitePageStoreManager#initialize, CacheEntr…
shishkovilja May 20, 2024
a9085b7
IGNITE-21835 WIP: Partial revert CacheEntryInfoCollection. Clean-up G…
shishkovilja May 21, 2024
0899484
IGNITE-21835 WIP: DdlTransactionSelfTest, SqlParserMultiStatementSelf…
shishkovilja May 21, 2024
359ab5a
IGNITE-21835 WIP: Checkstyle.
shishkovilja May 21, 2024
21a09ee
IGNITE-21835 WIP: Storable#headerSize removal.
shishkovilja May 22, 2024
68ad6a7
IGNITE-21835 WIP: B+Tree
shishkovilja May 22, 2024
9592088
IGNITE-21835 WIP: AbstractDataInnerIO, GridCacheQueryAdapter, IgniteT…
shishkovilja May 22, 2024
23d6da5
IGNITE-21835 WIP: Cleanup indexing + CacheDataTree
shishkovilja May 23, 2024
6addc73
IGNITE-21835 WIP.
shishkovilja May 24, 2024
b0f720b
IGNITE-21835 WIP: CacheDataRowAdapter.
shishkovilja May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/_docs/setup.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ Example of the output:
ignite.sh -systemProps
IGNITE_AFFINITY_HISTORY_SIZE - [Integer] Maximum size for affinity assignment history. Default is 25.
IGNITE_ALLOW_ATOMIC_OPS_IN_TX - [Boolean] Allows atomic operations inside transactions. Default is true.
IGNITE_ALLOW_DML_INSIDE_TRANSACTION - [Boolean] When set to true, Ignite will allow executing DML operation (MERGE|INSERT|UPDATE|DELETE) within transactions for non MVCC mode. Default is false.
IGNITE_ALLOW_DML_INSIDE_TRANSACTION - [Boolean] When set to true, Ignite will allow executing DML operation (MERGE|INSERT|UPDATE|DELETE) within transactions. Default is false.
IGNITE_ALLOW_START_CACHES_IN_PARALLEL - [Boolean] Allows to start multiple caches in parallel. Default is true.
...

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@
* limitations under the License.
*/

package org.apache.ignite.internal.processors.cache.distributed.dht;
package org.apache.ignite.internal.processors.cache;

import org.apache.ignite.internal.IgniteInternalFuture;
import org.apache.ignite.calcite.CalciteQueryEngineConfiguration;
import org.apache.ignite.configuration.QueryEngineConfiguration;

/**
* Marker interface.
*/
public interface DhtLockFuture<T> extends IgniteInternalFuture<T> {
/**
* @param error Error.
*/
public void onError(Throwable error);
/** */
public class DdlTransactionCalciteSelfTest extends DdlTransactionSelfTestBase {
/** {@inheritDoc} */
@Override protected QueryEngineConfiguration getQueryEngineConfiguration() {
return new CalciteQueryEngineConfiguration()
.setDefault(true);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

package org.apache.ignite.testsuites;

import org.apache.ignite.internal.processors.cache.DdlTransactionCalciteSelfTest;
import org.apache.ignite.internal.processors.query.calcite.CalciteQueryProcessorTest;
import org.apache.ignite.internal.processors.query.calcite.CancelTest;
import org.apache.ignite.internal.processors.query.calcite.DateTimeTest;
Expand Down Expand Up @@ -133,6 +134,7 @@
JoinRehashIntegrationTest.class,
IndexWithSameNameCalciteTest.class,
AuthorizationIntegrationTest.class,
DdlTransactionCalciteSelfTest.class,
})
public class IntegrationTestSuite {
}
Original file line number Diff line number Diff line change
Expand Up @@ -1554,12 +1554,12 @@ public final class IgniteSystemProperties {

/**
* When set to {@code true}, Ignite will allow execute DML operation (MERGE|INSERT|UPDATE|DELETE)
* within transaction for non MVCC mode.
* within transaction.
*
* Default is {@code false}.
*/
@SystemProperty("When set to true, Ignite will allow executing DML operation " +
"(MERGE|INSERT|UPDATE|DELETE) within transactions for non MVCC mode")
"(MERGE|INSERT|UPDATE|DELETE) within transactions")
public static final String IGNITE_ALLOW_DML_INSIDE_TRANSACTION = "IGNITE_ALLOW_DML_INSIDE_TRANSACTION";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ public enum IgniteFeatures {
/** Force rebuild, list or request indexes rebuild status from control script. */
INDEXES_MANIPULATIONS_FROM_CONTROL_SCRIPT(42),

/** Optimization of recovery protocol for cluster which doesn't contain MVCC caches. */
MVCC_TX_RECOVERY_PROTOCOL_V2(44),

/** Pk index keys are applied in correct order. */
SPECIFIED_SEQ_PK_KEYS(45),

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,6 @@ private IgniteCheckedException updateIndex(
* @param pageMemory Page memory to work with.
* @param removeId Global remove id.
* @param reuseList Reuse list where free pages should be stored.
* @param mvccEnabled Whether mvcc is enabled.
* @throws IgniteCheckedException If failed.
*/
public void destroyOrphanIndex(
Expand All @@ -500,8 +499,7 @@ public void destroyOrphanIndex(
int grpId,
PageMemory pageMemory,
GridAtomicLong removeId,
ReuseList reuseList,
boolean mvccEnabled) throws IgniteCheckedException {
ReuseList reuseList) throws IgniteCheckedException {

assert ctx.cache().context().database().checkpointLockIsHeldByThread();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
import org.apache.ignite.internal.pagemem.wal.record.DataEntry;
import org.apache.ignite.internal.pagemem.wal.record.DataRecord;
import org.apache.ignite.internal.pagemem.wal.record.TimeStampRecord;
import org.apache.ignite.internal.pagemem.wal.record.UnwrappedDataEntry;
import org.apache.ignite.internal.pagemem.wal.record.UnwrapDataEntry;
import org.apache.ignite.internal.pagemem.wal.record.WALRecord;
import org.apache.ignite.internal.processors.cache.GridCacheOperation;
import org.apache.ignite.internal.processors.cache.persistence.wal.WALPointer;
Expand Down Expand Up @@ -91,7 +91,7 @@ public class WalRecordsConsumer<K, V> {

/** Event transformer. */
static final IgniteClosure<DataEntry, CdcEvent> CDC_EVENT_TRANSFORMER = e -> {
UnwrappedDataEntry ue = (UnwrappedDataEntry)e;
UnwrapDataEntry ue = (UnwrapDataEntry)e;

return new CdcEventImpl(
ue.unwrappedKey(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import org.apache.ignite.internal.processors.cache.CacheGroupContext;
import org.apache.ignite.internal.processors.cache.CacheGroupDescriptor;
import org.apache.ignite.internal.processors.cache.GridCacheSharedManager;
import org.apache.ignite.internal.processors.cache.persistence.pagemem.PageMetrics;
import org.apache.ignite.internal.processors.cache.persistence.pagemem.PageReadWriteManager;
import org.apache.ignite.internal.processors.cluster.IgniteChangeGlobalStateSupport;

Expand All @@ -43,18 +42,6 @@ public interface IgnitePageStoreManager extends GridCacheSharedManager, IgniteCh
*/
public void finishRecover() throws IgniteCheckedException;

/**
* Initializes disk store structures.
*
* @param cacheId Cache id.
* @param partitions Partitions count.
* @param cacheName Cache name.
* @param pageMetrics Page metrics.
* @throws IgniteCheckedException If failed.
*/
public void initialize(int cacheId, int partitions, String cacheName, PageMetrics pageMetrics)
throws IgniteCheckedException;

/**
* Callback called when a cache is starting.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* Represents Data Entry ({@link #key}, {@link #val value}) pair update {@link #op operation}. <br>
* This Data entry was not converted to key, value pair during record deserialization.
*/
public class LazyDataEntry extends DataEntry implements MarshalledDataEntry {
public class LazyDataEntry extends DataEntry {
/** */
private GridCacheSharedContext cctx;

Expand Down Expand Up @@ -126,23 +126,23 @@ public LazyDataEntry(
return val;
}

/** {@inheritDoc} */
@Override public byte getKeyType() {
/** @return Data Entry Key type code. See {@link CacheObject} for built-in value type codes */
public byte getKeyType() {
return keyType;
}

/** {@inheritDoc} */
@Override public byte[] getKeyBytes() {
/** @return Key value bytes. */
public byte[] getKeyBytes() {
return keyBytes;
}

/** {@inheritDoc} */
@Override public byte getValType() {
/** @return Data Entry Value type code. See {@link CacheObject} for built-in value type codes */
public byte getValType() {
return valType;
}

/** {@inheritDoc} */
@Override public byte[] getValBytes() {
/** @return Value value bytes. */
public byte[] getValBytes() {
return valBytes;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
/**
* Data Entry for automatic unwrapping key and value from Data Entry
*/
public class UnwrapDataEntry extends DataEntry implements UnwrappedDataEntry {
public class UnwrapDataEntry extends DataEntry {
/** Cache object value context. Context is used for unwrapping objects. */
private final CacheObjectValueContext cacheObjValCtx;

Expand Down Expand Up @@ -68,8 +68,13 @@ public UnwrapDataEntry(
this.keepBinary = keepBinary;
}

/** {@inheritDoc} */
@Override public Object unwrappedKey() {
/**
* Unwraps key from cache key object into primitive boxed type or source class. If client classes were used in
* key, call of this method requires classes to be available in classpath.
*
* @return Key which was placed into cache. Or null if failed to convert.
*/
public Object unwrappedKey() {
try {
return unwrapKey(key, keepBinary, cacheObjValCtx);
}
Expand All @@ -81,8 +86,13 @@ public UnwrapDataEntry(
}
}

/** {@inheritDoc} */
@Override public Object unwrappedValue() {
/**
* Unwraps value from cache value object into primitive boxed type or source class. If client classes were
* used in key, call of this method requires classes to be available in classpath.
*
* @return Value which was placed into cache. Or null for delete operation or for failure.
*/
public Object unwrappedValue() {
try {
return unwrapValue(val, keepBinary, cacheObjValCtx);
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,6 @@ public CacheEntryInfoCollection() {
// No-op
}

/**
* @param infos List of cache entry info.
*/
public CacheEntryInfoCollection(List<GridCacheEntryInfo> infos) {
this.infos = infos;
}

/**
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1028,24 +1028,6 @@ public void onPartitionCounterUpdate(int cacheId,
}
}

/**
* @return {@code True} if there is at least one cache with registered CQ exists in this group.
*/
public boolean hasContinuousQueryCaches() {
List<GridCacheContext<?, ?>> contQryCaches;

listenerLock.readLock().lock();

try {
contQryCaches = this.contQryCaches;

return !F.isEmpty(contQryCaches);
}
finally {
listenerLock.readLock().unlock();
}
}

/**
* @throws IgniteCheckedException If failed.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,6 @@ public CacheInvokeEntry(KeyCacheObject keyObj,
op = hadVal ? Operation.UPDATE : Operation.CREATE;
}

/**
* Entry processor operation.
*
* @return Operation.
*/
public Operation op() {
return op;
}

/**
* @return Return origin value, before modification.
*/
Expand Down Expand Up @@ -167,7 +158,7 @@ public GridCacheEntryEx entry() {
/**
*
*/
public static enum Operation {
private static enum Operation {
/** */
NONE,

Expand Down
Loading
Loading