diff --git a/modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/configuration/PageMemoryStorageEngineLocalConfigurationModule.java b/modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/configuration/PageMemoryStorageEngineLocalConfigurationModule.java index 475930c8c73..5f0901e0e05 100644 --- a/modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/configuration/PageMemoryStorageEngineLocalConfigurationModule.java +++ b/modules/storage-page-memory/src/main/java/org/apache/ignite/internal/storage/pagememory/configuration/PageMemoryStorageEngineLocalConfigurationModule.java @@ -21,6 +21,7 @@ import java.util.Collection; import java.util.List; import org.apache.ignite.configuration.ConfigurationModule; +import org.apache.ignite.configuration.NamedListChange; import org.apache.ignite.configuration.SuperRootChange; import org.apache.ignite.configuration.annotation.ConfigurationType; import org.apache.ignite.internal.pagememory.configuration.schema.PersistentPageMemoryProfileChange; @@ -28,6 +29,8 @@ import org.apache.ignite.internal.pagememory.configuration.schema.VolatilePageMemoryProfileConfigurationSchema; import org.apache.ignite.internal.storage.configurations.StorageExtensionChange; import org.apache.ignite.internal.storage.configurations.StorageExtensionConfiguration; +import org.apache.ignite.internal.storage.configurations.StorageProfileChange; +import org.apache.ignite.internal.storage.configurations.StorageProfileView; import org.apache.ignite.internal.storage.pagememory.configuration.schema.PersistentPageMemoryStorageEngineExtensionConfigurationSchema; import org.apache.ignite.internal.storage.pagememory.configuration.schema.VolatilePageMemoryStorageEngineExtensionConfigurationSchema; @@ -62,8 +65,10 @@ public Collection> schemaExtensions() { @Override public void patchConfigurationWithDynamicDefaults(SuperRootChange rootChange) { StorageExtensionChange storageExtensionChange = (StorageExtensionChange) rootChange.changeRoot(StorageExtensionConfiguration.KEY); - storageExtensionChange.changeStorage().changeProfiles().createOrUpdate(DEFAULT_PROFILE_NAME, p -> { - p.convert(PersistentPageMemoryProfileChange.class); - }); + NamedListChange profiles = storageExtensionChange.changeStorage().changeProfiles(); + + if (profiles.isEmpty()) { + profiles.create(DEFAULT_PROFILE_NAME, p -> p.convert(PersistentPageMemoryProfileChange.class)); + } } }