[
https://issues.apache.org/jira/browse/IGNITE-19792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17752057#comment-17752057
]
Kirill Sizov commented on IGNITE-19792:
----------------------------------------
All the places where @Immutable is used in the code will be reworked in
IGNITE-19502, therefore it's worth postponing this task until IGNITE-19502 is
done.
> Support @Immutable logic for distributed configuration
> ------------------------------------------------------
>
> Key: IGNITE-19792
> URL: https://issues.apache.org/jira/browse/IGNITE-19792
> Project: Ignite
> Issue Type: Improvement
> Reporter: Roman Puchkovskiy
> Assignee: Kirill Sizov
> Priority: Major
> Labels: ignite-3
> Fix For: 3.0.0-beta2
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> For distributed properties, the following scenario makes sense:
> # Property value might be set on cluster init
> # If it is provided, it overrides the default; otherwise, the default (set
> in the {{@Value}} annotation) is used
> # Any attempt to modify the property value using a changer is rejected by a
> validator
> {{@Immutable}} annotation is designed to trigger such behavior.
> Now, the observed behavior is different: if a property is annotated as
> {{{}@Immutable{}}}, then, if a value is supplied during cluster
> initialization, the value is silently ignored, so it is impossible to
> configure such property to anything different from the default.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)