Erixonich commented on a change in pull request #9612:
URL: https://github.com/apache/ignite/pull/9612#discussion_r761943925



##########
File path: 
modules/platforms/dotnet/Apache.Ignite.Core/Configuration/DataStorageConfiguration.cs
##########
@@ -478,13 +491,37 @@ internal void Write(IBinaryRawWriter writer)
         /// Gets or sets the size of a memory chunk reserved for system needs.
         /// </summary>
         [DefaultValue(DefaultSystemRegionInitialSize)]
-        public long SystemRegionInitialSize { get; set; }
+        public long SystemRegionInitialSize
+        {
+            get => SystemDataRegionConfiguration?.InitialSize ?? 
SystemDataRegionConfiguration.DefaultInitialSize;
+            set
+            {
+                if (SystemDataRegionConfiguration == null)
+                {
+                    SystemDataRegionConfiguration = new 
SystemDataRegionConfiguration();
+                }
+
+                SystemDataRegionConfiguration.InitialSize = value;
+            }
+        }
 
         /// <summary>
         /// Gets or sets the maximum memory region size reserved for system 
needs.
         /// </summary>
         [DefaultValue(DefaultSystemRegionMaxSize)]
-        public long SystemRegionMaxSize { get; set; }
+        public long SystemRegionMaxSize
+        {
+            get => SystemDataRegionConfiguration?.MaxSize ?? 
SystemDataRegionConfiguration.DefaultMaxSize;
+            set
+            {
+                if (SystemDataRegionConfiguration == null)
+                {
+                    SystemDataRegionConfiguration = new 
SystemDataRegionConfiguration();

Review comment:
       There are tests preventing from doing it. see 
IgniteConfigurationTest.cs:706.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to