Skip to content

Commit 2d57d27

Browse files
authored
IGNITE-23333 СDC is no longer experimental (#11567)
1 parent fda9dbd commit 2d57d27

File tree

17 files changed

+33
-78
lines changed

17 files changed

+33
-78
lines changed

docs/_docs/extensions-and-integrations/change-data-capture-extensions.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
// limitations under the License.
1515
= Cross-cluster Replication Extension
1616

17-
WARNING: Change Data Capture (CDC) and Cross-cluster Replication Extension are experimental features. API or design architecture might be changed.
18-
1917
== Overview
2018
link:https://github.com/apache/ignite-extensions/tree/master/modules/cdc-ext[Cross-cluster Replication Extension] module provides the following ways to set up cross-cluster replication based on CDC.
2119

docs/_docs/persistence/change-data-capture.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@
1818
== Overview
1919
Change Data Capture (link:https://en.wikipedia.org/wiki/Change_data_capture[CDC]) is a data processing pattern used to asynchronously receive entries that have been changed on the local node so that action can be taken using the changed entry.
2020

21-
WARNING: CDC is an experimental feature. API or design architecture might be changed.
22-
2321
Below are some CDC use cases:
2422

2523
* Streaming changes in Warehouse;

modules/core/src/main/java/org/apache/ignite/cdc/CdcCacheEvent.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.ignite.IgniteCache;
2323
import org.apache.ignite.cache.QueryEntity;
2424
import org.apache.ignite.configuration.CacheConfiguration;
25-
import org.apache.ignite.lang.IgniteExperimental;
2625
import org.apache.ignite.spi.systemview.view.CacheView;
2726

2827
/**
@@ -34,7 +33,6 @@
3433
* @see CacheConfiguration
3534
* @see QueryEntity
3635
*/
37-
@IgniteExperimental
3836
public interface CdcCacheEvent {
3937
/**
4038
* @return Cache ID.

modules/core/src/main/java/org/apache/ignite/cdc/CdcConfiguration.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@
1818
package org.apache.ignite.cdc;
1919

2020
import org.apache.ignite.configuration.DataStorageConfiguration;
21-
import org.apache.ignite.internal.cdc.CdcMain;
22-
import org.apache.ignite.lang.IgniteExperimental;
2321
import org.apache.ignite.spi.metric.MetricExporterSpi;
2422
import org.apache.ignite.spi.metric.jmx.JmxMetricExporterSpi;
2523

2624
/**
27-
* This class defines {@link CdcMain} runtime configuration.
28-
* Configuration is passed to {@link CdcMain} constructor.
25+
* This class defines ignite-cdc runtime configuration.
2926
*/
30-
@IgniteExperimental
3127
public class CdcConfiguration {
3228
/** */
3329
private static final int DFLT_LOCK_TIMEOUT = 1000;
@@ -48,7 +44,7 @@ public class CdcConfiguration {
4844
private boolean keepBinary = DFLT_KEEP_BINARY;
4945

5046
/**
51-
* {@link CdcMain} acquire file lock on startup to ensure exclusive consumption.
47+
* Ignite-cdc process acquire file lock on startup to ensure exclusive consumption.
5248
* This property specifies amount of time to wait for lock acquisition.<br>
5349
* Default is {@code 1000 ms}.
5450
*/

modules/core/src/main/java/org/apache/ignite/cdc/CdcConsumer.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@
2424
import org.apache.ignite.binary.BinaryIdMapper;
2525
import org.apache.ignite.binary.BinaryType;
2626
import org.apache.ignite.cache.CacheEntryVersion;
27-
import org.apache.ignite.internal.cdc.CdcMain;
28-
import org.apache.ignite.lang.IgniteExperimental;
2927
import org.apache.ignite.metric.MetricRegistry;
3028
import org.apache.ignite.resources.LoggerResource;
3129
import org.apache.ignite.spi.systemview.view.CacheView;
3230

3331
/**
3432
* Consumer of WAL data change events.
35-
* This consumer will receive data change events during {@link CdcMain} application invocation.
33+
* This consumer will receive data change events during ignite-cdc process invocation.
3634
* The lifecycle of the consumer is the following:
3735
* <ul>
3836
* <li>Start of the consumer {@link #start(MetricRegistry)}.</li>
@@ -61,11 +59,9 @@
6159
* </ul>
6260
* Note, {@link CdcConsumer} receive notifications on each running CDC application(node).
6361
*
64-
* @see CdcMain
6562
* @see CdcEvent
6663
* @see CacheEntryVersion
6764
*/
68-
@IgniteExperimental
6965
public interface CdcConsumer {
7066
/**
7167
* Starts the consumer.

modules/core/src/main/java/org/apache/ignite/cdc/CdcEvent.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,15 @@
2222
import javax.cache.expiry.ExpiryPolicy;
2323
import org.apache.ignite.cache.CacheEntryVersion;
2424
import org.apache.ignite.cache.affinity.Affinity;
25-
import org.apache.ignite.internal.cdc.CdcMain;
26-
import org.apache.ignite.lang.IgniteExperimental;
2725
import org.apache.ignite.spi.systemview.view.CacheView;
2826
import org.jetbrains.annotations.Nullable;
2927

3028
/**
3129
* Event of single entry change.
3230
* Instance presents new value of modified entry.
3331
*
34-
* @see CdcMain
3532
* @see CdcConsumer
3633
*/
37-
@IgniteExperimental
3834
public interface CdcEvent extends Serializable {
3935
/**
4036
* @return Key for the changed entry.

modules/core/src/main/java/org/apache/ignite/cdc/TypeMapping.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
import org.apache.ignite.IgniteBinary;
2323
import org.apache.ignite.binary.BinaryIdMapper;
2424
import org.apache.ignite.binary.BinaryObject;
25-
import org.apache.ignite.lang.IgniteExperimental;
2625
import org.apache.ignite.marshaller.MarshallerContext;
2726
import org.apache.ignite.platform.PlatformType;
2827

@@ -38,7 +37,6 @@
3837
* @see CdcConsumer#onMappings(Iterator)
3938
* @see MarshallerContext#registerClassName(byte, int, String, boolean)
4039
*/
41-
@IgniteExperimental
4240
public interface TypeMapping extends Serializable {
4341
/** @return Type id. */
4442
public int typeId();

modules/core/src/main/java/org/apache/ignite/configuration/DataRegionConfiguration.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.apache.ignite.DataRegionMetrics;
2121
import org.apache.ignite.internal.mem.IgniteOutOfMemoryException;
2222
import org.apache.ignite.internal.util.typedef.internal.S;
23-
import org.apache.ignite.lang.IgniteExperimental;
2423
import org.apache.ignite.mem.MemoryAllocator;
2524
import org.apache.ignite.mxbean.MetricsMxBean;
2625
import org.jetbrains.annotations.Nullable;
@@ -157,7 +156,6 @@ public final class DataRegionConfiguration implements Serializable {
157156
@Nullable private MemoryAllocator memoryAllocator = null;
158157

159158
/** Change Data Capture enabled flag. */
160-
@IgniteExperimental
161159
private boolean cdcEnabled;
162160

163161
/**
@@ -566,7 +564,6 @@ public DataRegionConfiguration setWarmUpConfiguration(@Nullable WarmUpConfigurat
566564
* @param cdcEnabled CDC enabled flag.
567565
* @return {@code this} for chaining.
568566
*/
569-
@IgniteExperimental
570567
public DataRegionConfiguration setCdcEnabled(boolean cdcEnabled) {
571568
this.cdcEnabled = cdcEnabled;
572569

@@ -579,7 +576,6 @@ public DataRegionConfiguration setCdcEnabled(boolean cdcEnabled) {
579576
*
580577
* @return CDC enabled flag.
581578
*/
582-
@IgniteExperimental
583579
public boolean isCdcEnabled() {
584580
return cdcEnabled;
585581
}

modules/core/src/main/java/org/apache/ignite/configuration/DataStorageConfiguration.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
import org.apache.ignite.internal.util.typedef.internal.A;
2828
import org.apache.ignite.internal.util.typedef.internal.S;
2929
import org.apache.ignite.internal.util.typedef.internal.U;
30-
import org.apache.ignite.lang.IgniteExperimental;
3130
import org.apache.ignite.mem.MemoryAllocator;
3231
import org.apache.ignite.mxbean.MetricsMxBean;
3332
import org.jetbrains.annotations.Nullable;
@@ -239,11 +238,9 @@ public class DataStorageConfiguration implements Serializable {
239238
private String walArchivePath = DFLT_WAL_ARCHIVE_PATH;
240239

241240
/** Change Data Capture path. */
242-
@IgniteExperimental
243241
private String cdcWalPath = DFLT_WAL_CDC_PATH;
244242

245243
/** Change Data Capture directory size limit. */
246-
@IgniteExperimental
247244
private long cdcWalDirMaxSize = DFLT_CDC_WAL_DIRECTORY_MAX_SIZE;
248245

249246
/**
@@ -298,7 +295,6 @@ public class DataStorageConfiguration implements Serializable {
298295
private long walAutoArchiveAfterInactivity = -1;
299296

300297
/** Time interval (in milliseconds) after last log of data change for force archiving of incompletely WAL segment. */
301-
@IgniteExperimental
302298
private long walForceArchiveTimeout = -1;
303299

304300
/** If true, threads that generate dirty pages too fast during ongoing checkpoint will be throttled. */
@@ -787,7 +783,6 @@ public DataStorageConfiguration setWalArchivePath(String walArchivePath) {
787783
*
788784
* @return CDC directory.
789785
*/
790-
@IgniteExperimental
791786
public String getCdcWalPath() {
792787
return cdcWalPath;
793788
}
@@ -799,7 +794,6 @@ public String getCdcWalPath() {
799794
* @param cdcWalPath CDC directory.
800795
* @return {@code this} for chaining.
801796
*/
802-
@IgniteExperimental
803797
public DataStorageConfiguration setCdcWalPath(String cdcWalPath) {
804798
A.notNull(cdcWalPath, "CDC WAL");
805799

@@ -813,7 +807,6 @@ public DataStorageConfiguration setCdcWalPath(String cdcWalPath) {
813807
*
814808
* @return CDC directory maximum size in bytes.
815809
*/
816-
@IgniteExperimental
817810
public long getCdcWalDirectoryMaxSize() {
818811
return cdcWalDirMaxSize;
819812
}
@@ -827,7 +820,6 @@ public long getCdcWalDirectoryMaxSize() {
827820
* @param cdcWalDirMaxSize CDC directory maximum size in bytes.
828821
* @return {@code this} for chaining.
829822
*/
830-
@IgniteExperimental
831823
public DataStorageConfiguration setCdcWalDirectoryMaxSize(long cdcWalDirMaxSize) {
832824
this.cdcWalDirMaxSize = cdcWalDirMaxSize;
833825

@@ -1149,7 +1141,6 @@ public long getWalAutoArchiveAfterInactivity() {
11491141
* Zero or negative value disables forcefull auto archiving.
11501142
* @return current configuration instance for chaining.
11511143
*/
1152-
@IgniteExperimental
11531144
public DataStorageConfiguration setWalForceArchiveTimeout(long walForceArchiveTimeout) {
11541145
this.walForceArchiveTimeout = walForceArchiveTimeout;
11551146

@@ -1160,7 +1151,6 @@ public DataStorageConfiguration setWalForceArchiveTimeout(long walForceArchiveTi
11601151
* @return time interval (in milliseconds) after last log of data change
11611152
* for force archiving of incompletely WAL segment.
11621153
*/
1163-
@IgniteExperimental
11641154
public long getWalForceArchiveTimeout() {
11651155
return walForceArchiveTimeout;
11661156
}

modules/core/src/main/java/org/apache/ignite/cdc/CdcLoader.java renamed to modules/core/src/main/java/org/apache/ignite/internal/cdc/CdcLoader.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,25 @@
1515
* limitations under the License.
1616
*/
1717

18-
package org.apache.ignite.cdc;
18+
package org.apache.ignite.internal.cdc;
1919

2020
import java.net.URL;
2121
import java.util.Collection;
2222
import java.util.Map;
2323
import org.apache.ignite.IgniteCheckedException;
24+
import org.apache.ignite.cdc.CdcConfiguration;
2425
import org.apache.ignite.configuration.IgniteConfiguration;
25-
import org.apache.ignite.internal.cdc.CdcMain;
2626
import org.apache.ignite.internal.processors.resource.GridSpringResourceContext;
2727
import org.apache.ignite.internal.util.spring.IgniteSpringHelper;
2828
import org.apache.ignite.internal.util.typedef.F;
2929
import org.apache.ignite.internal.util.typedef.internal.U;
3030
import org.apache.ignite.lang.IgniteBiTuple;
31-
import org.apache.ignite.lang.IgniteExperimental;
3231

3332
import static org.apache.ignite.internal.IgniteComponentType.SPRING;
3433

3534
/**
3635
* Utility class to load {@link CdcMain} from Spring XML configuration.
3736
*/
38-
@IgniteExperimental
3937
public class CdcLoader {
4038
/**
4139
* Loads {@link CdcMain} from XML configuration file.

0 commit comments

Comments
 (0)