You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Madhan Neethiraj (Jira)" <ji...@apache.org> on 2026/01/12 15:10:00 UTC

[jira] [Resolved] (RANGER-5442) replace repeated Gson instantiation with JsonUtils method calls

     [ https://issues.apache.org/jira/browse/RANGER-5442?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Madhan Neethiraj resolved RANGER-5442.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.8.0
       Resolution: Fixed

master branch: https://github.com/apache/ranger/commit/ad4e268f1d2ab80718d3f642a5907743b1d466f6

ranger-2.8 branch: https://github.com/apache/ranger/commit/8331a8042eac129cb1a0ebf41b13831be8ee2e1a

> replace repeated Gson instantiation with JsonUtils method calls
> ---------------------------------------------------------------
>
>                 Key: RANGER-5442
>                 URL: https://issues.apache.org/jira/browse/RANGER-5442
>             Project: Ranger
>          Issue Type: Improvement
>          Components: admin
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>            Priority: Major
>             Fix For: 3.0.0, 2.8.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> An instance of {{Gson}} object is created in several methods of {{{}XXGlobalStateDao{}}}. The overhead of these instantiations can be avoided by using {{JsonUtil}} methods, which use thread-local mappers to convert to/from json strings.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)