[
https://issues.apache.org/jira/browse/IGNITE-12610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17031565#comment-17031565
]
Artsiom Panko commented on IGNITE-12610:
----------------------------------------
[~Pavlukhin], the only way to change _final static_ field as I know is using of
reflection. But javac inlines static final variables and brings the values
directly to the constant pool, additionally the compiler is not required to
monitor their subsequent changes. But even if we do this, we cant be sure that
code will see the new value.
Or I'm wrong?
> Disable H2 object cache reliably
> --------------------------------
>
> Key: IGNITE-12610
> URL: https://issues.apache.org/jira/browse/IGNITE-12610
> Project: Ignite
> Issue Type: Bug
> Components: sql
> Affects Versions: 2.8
> Reporter: Ivan Pavlukhin
> Assignee: Artsiom Panko
> Priority: Major
> Labels: newbie
> Fix For: 2.9
>
>
> Internally H2 maintains a cache of {{org.h2.value.Value}} objects. It can be
> disabled by using "h2.objectCache" system property. There is a clear intent
> to disable this cache because the system property is set to "false" in
> {{org.apache.ignite.internal.processors.query.h2.ConnectionManager}}. But
> apparently it is too late, because the property is read by H2 internals
> before it. Consequently the object cache is enabled by default.
> We need to set this property earlier.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)