mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 15:05:33 +00:00
The `QueryShardContext.failIfFrozen()` and `QueryShardContext.freezeContext()` methods should be final so that overriding/bypassing the freezing of `QueryShardContext` is not possible. This is important so that we can trust when the `QueryShardContext` says a request is cacheable. This change also makes the methods that call `QueryShardContext.failIfFrozen()` `final` so they cannot be overridden to bypass setting the request as not cacheable.