[jira] [Comment Edited] (RANGER-4821) Fix bugs and code smell reported by sonarqube

2024-06-14 Thread Monika kachhadiya (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17855010#comment-17855010
 ] 

Monika kachhadiya edited comment on RANGER-4821 at 6/14/24 9:40 AM:


Review Request [https://reviews.apache.org/r/75048/]

 Around 300 sonarqube findings have been fixed with this patch. This will help 
improve code readability and maintainability.

Blockers have been reduced from 287 to 226

!image-2024-06-14-15-10-42-750.png!


was (Author: JIRAUSER291264):
Review Request [https://reviews.apache.org/r/75048/]


 Around 300 sonarqube findings have been fixed with this patch. This will help 
improve code readability and maintainability.

Blockers have been reduced from 287 to 226

> Fix bugs and code smell reported by sonarqube
> -
>
> Key: RANGER-4821
> URL: https://issues.apache.org/jira/browse/RANGER-4821
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Assignee: Monika kachhadiya
>Priority: Major
> Attachments: image-2024-06-14-13-06-18-950.png, 
> image-2024-06-14-15-10-42-750.png
>
>
> Apache ranger has around 16k sonar findings. Please refer below screen print 
> for details.
> This Jira is to fix some blocker and critical sonarqube findings. This will 
> help improve code readability and maintainability.
> !image-2024-06-14-13-06-18-950.png!



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


[jira] [Updated] (RANGER-4821) Fix bugs and code smell reported by sonarqube

2024-06-14 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4821:
--
Description: 
Apache ranger has around 16k sonar findings. Please refer below screen print 
for details.
This Jira is to fix some blocker and critical sonarqube findings. This will 
help improve code readability and maintainability.

!image-2024-06-14-13-06-18-950.png!

  was:
Apache ranger has around 16k sonar findings. Please refer below screen print 
for details.
This Jira is to fix some blocker and critical sonarqube findings. This will 
help improve code readability and maintainability.

!image-2024-06-14-13-03-54-421.png!


> Fix bugs and code smell reported by sonarqube
> -
>
> Key: RANGER-4821
> URL: https://issues.apache.org/jira/browse/RANGER-4821
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Assignee: Monika kachhadiya
>Priority: Major
> Attachments: image-2024-06-14-13-06-18-950.png
>
>
> Apache ranger has around 16k sonar findings. Please refer below screen print 
> for details.
> This Jira is to fix some blocker and critical sonarqube findings. This will 
> help improve code readability and maintainability.
> !image-2024-06-14-13-06-18-950.png!



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


[jira] [Updated] (RANGER-4821) Fix bugs and code smell reported by sonarqube

2024-06-14 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4821:
--
Attachment: image-2024-06-14-13-06-18-950.png

> Fix bugs and code smell reported by sonarqube
> -
>
> Key: RANGER-4821
> URL: https://issues.apache.org/jira/browse/RANGER-4821
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Assignee: Monika kachhadiya
>Priority: Major
> Attachments: image-2024-06-14-13-06-18-950.png
>
>
> Apache ranger has around 16k sonar findings. Please refer below screen print 
> for details.
> This Jira is to fix some blocker and critical sonarqube findings. This will 
> help improve code readability and maintainability.
> !image-2024-06-14-13-03-54-421.png!



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


[jira] [Created] (RANGER-4821) Fix bugs and code smell reported by sonarqube

2024-06-14 Thread Monika kachhadiya (Jira)
Monika kachhadiya created RANGER-4821:
-

 Summary: Fix bugs and code smell reported by sonarqube
 Key: RANGER-4821
 URL: https://issues.apache.org/jira/browse/RANGER-4821
 Project: Ranger
  Issue Type: Improvement
  Components: Ranger
Reporter: Monika kachhadiya
Assignee: Monika kachhadiya


Apache ranger has around 16k sonar findings. Please refer below screen print 
for details.
This Jira is to fix some blocker and critical sonarqube findings. This will 
help improve code readability and maintainability.

!image-2024-06-14-13-03-54-421.png!



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


[jira] [Updated] (RANGER-4806) With java 17 the audit spool exception is seen if solr is not reachable.

2024-05-28 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4806:
--
Description: 
With java 17 the audit spool exception is seen if solr is not reachable. 
 
{code:java}
 
 ERROR AuditFileSpool: Error writing to file. event=AuthzAuditEvent
com.google.gson.JsonIOException: Failed making field 
'java.nio.charset.Charset#name' accessible; either increase its visibility or 
write a custom TypeAdapter for its declaring type.
at 
com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:38)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:286)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:736) ~[gson-2.10.1.jar:?]
at 
org.apache.ranger.audit.queue.AuditFileSpool.saveIndexFile(AuditFileSpool.java) 
~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 
org.apache.ranger.audit.queue.AuditFileSpool.getLogFileStream(AuditFileSpool.java)
 ~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 
org.apache.ranger.audit.queue.AuditBatchQueue.runLogAudit(AuditBatchQueue.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 

[jira] [Updated] (RANGER-4806) With java 17 the audit spool exception is seen if solr is not reachable.

2024-05-28 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4806:
--
Summary:  With java 17 the audit spool exception is seen if solr is not 
reachable.  (was:  with java 17 the audit spool exception is seen if solr is 
not reachable.)

>  With java 17 the audit spool exception is seen if solr is not reachable.
> -
>
> Key: RANGER-4806
> URL: https://issues.apache.org/jira/browse/RANGER-4806
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Monika kachhadiya
>Assignee: Monika kachhadiya
>Priority: Major
>
> In EMR.6.15 environment with java 17 the audit spool exception is seen if 
> solr is not reachable. 
>  
> {code:java}
>  
>  ERROR AuditFileSpool: Error writing to file. event=AuthzAuditEvent
> com.google.gson.JsonIOException: Failed making field 
> 'java.nio.charset.Charset#name' accessible; either increase its visibility or 
> write a custom TypeAdapter for its declaring type.
> at 
> com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:38)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:286)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:736) ~[gson-2.10.1.jar:?]
> at 

[jira] [Updated] (RANGER-4806) With java 17 the audit spool exception is seen if solr is not reachable.

2024-05-28 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4806:
--
Description: 
With java 17 the audit spool exception is seen if solr is not reachable. 
 
{code:java}
 
 ERROR AuditFileSpool: Error writing to file. event=AuthzAuditEvent
com.google.gson.JsonIOException: Failed making field 
'java.nio.charset.Charset#name' accessible; either increase its visibility or 
write a custom TypeAdapter for its declaring type.
at 
com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:38)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:286)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:736) ~[gson-2.10.1.jar:?]
at 
org.apache.ranger.audit.queue.AuditFileSpool.saveIndexFile(AuditFileSpool.java) 
~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 
org.apache.ranger.audit.queue.AuditFileSpool.getLogFileStream(AuditFileSpool.java)
 ~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 
org.apache.ranger.audit.queue.AuditBatchQueue.runLogAudit(AuditBatchQueue.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditBatchQueue.run(AuditBatchQueue.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 

[jira] [Updated] (RANGER-4806) with java 17 the audit spool exception is seen if solr is not reachable.

2024-05-28 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4806:
--
Summary:  with java 17 the audit spool exception is seen if solr is not 
reachable.  (was: In EMR.6.15 environment with java 17 the audit spool 
exception is seen if solr is not reachable.)

>  with java 17 the audit spool exception is seen if solr is not reachable.
> -
>
> Key: RANGER-4806
> URL: https://issues.apache.org/jira/browse/RANGER-4806
> Project: Ranger
>  Issue Type: Bug
>  Components: Ranger
>Reporter: Monika kachhadiya
>Assignee: Monika kachhadiya
>Priority: Major
>
> In EMR.6.15 environment with java 17 the audit spool exception is seen if 
> solr is not reachable. 
>  
> {code:java}
>  
>  ERROR AuditFileSpool: Error writing to file. event=AuthzAuditEvent
> com.google.gson.JsonIOException: Failed making field 
> 'java.nio.charset.Charset#name' accessible; either increase its visibility or 
> write a custom TypeAdapter for its declaring type.
> at 
> com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:38)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:286)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
>  ~[gson-2.10.1.jar:?]
> at 
> com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
>  ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]
> at com.google.gson.Gson.toJson(Gson.java:736) 

[jira] [Created] (RANGER-4806) In EMR.6.15 environment with java 17 the audit spool exception is seen if solr is not reachable.

2024-05-28 Thread Monika kachhadiya (Jira)
Monika kachhadiya created RANGER-4806:
-

 Summary: In EMR.6.15 environment with java 17 the audit spool 
exception is seen if solr is not reachable.
 Key: RANGER-4806
 URL: https://issues.apache.org/jira/browse/RANGER-4806
 Project: Ranger
  Issue Type: Bug
  Components: Ranger
Reporter: Monika kachhadiya
Assignee: Monika kachhadiya


In EMR.6.15 environment with java 17 the audit spool exception is seen if solr 
is not reachable. 
 
{code:java}
 
 ERROR AuditFileSpool: Error writing to file. event=AuthzAuditEvent
com.google.gson.JsonIOException: Failed making field 
'java.nio.charset.Charset#name' accessible; either increase its visibility or 
write a custom TypeAdapter for its declaring type.
at 
com.google.gson.internal.reflect.ReflectionHelper.makeAccessible(ReflectionHelper.java:38)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:286)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.createBoundField(ReflectiveTypeAdapterFactory.java:160)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:294)
 ~[gson-2.10.1.jar:?]
at 
com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:130)
 ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.getAdapter(Gson.java:556) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:834) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:812) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:759) ~[gson-2.10.1.jar:?]
at com.google.gson.Gson.toJson(Gson.java:736) ~[gson-2.10.1.jar:?]
at 
org.apache.ranger.audit.queue.AuditFileSpool.saveIndexFile(AuditFileSpool.java) 
~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 
org.apache.ranger.audit.queue.AuditFileSpool.getLogFileStream(AuditFileSpool.java)
 ~[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at org.apache.ranger.audit.queue.AuditFileSpool.stashLogs(AuditFileSpool.java) 
[ranger-plugins-audit-10.22.0.2.jar:10.22.0.2]
at 

[jira] [Resolved] (RANGER-4790) Request to support GDS policy import and export

2024-05-08 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya resolved RANGER-4790.
---
Resolution: Invalid

> Request to support GDS policy import and export
> ---
>
> Key: RANGER-4790
> URL: https://issues.apache.org/jira/browse/RANGER-4790
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Priority: Major
>
> A feature enhancement is needed so that GDS policies can be imported and 
> exported.
> More information on the use case
>  * Incremental Backups so that any changes can be rollback
>  *  Audit existing GDS policies so we can catch any possible vulnerability. 
>  * For testing purposes, need to synchronize a lower (staging) environment 
> with a higher (prod) environment.
>  * want to periodically take backup of gds (domains and datasets)
>  * Sometimes we want to rebuild the domains and datasets using these backups. 
> this is the import use case.
>  * periodically tear down and recreate gds setups with automation
>  



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


[jira] [Commented] (RANGER-4790) Request to support GDS policy import and export

2024-05-08 Thread Monika kachhadiya (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4790?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17844867#comment-17844867
 ] 

Monika kachhadiya commented on RANGER-4790:
---

Marking this as invalid since this will need more than just importing/exporting 
 policies. It will also need import/export of GDS components. 

> Request to support GDS policy import and export
> ---
>
> Key: RANGER-4790
> URL: https://issues.apache.org/jira/browse/RANGER-4790
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Priority: Major
>
> A feature enhancement is needed so that GDS policies can be imported and 
> exported.
> More information on the use case
>  * Incremental Backups so that any changes can be rollback
>  *  Audit existing GDS policies so we can catch any possible vulnerability. 
>  * For testing purposes, need to synchronize a lower (staging) environment 
> with a higher (prod) environment.
>  * want to periodically take backup of gds (domains and datasets)
>  * Sometimes we want to rebuild the domains and datasets using these backups. 
> this is the import use case.
>  * periodically tear down and recreate gds setups with automation
>  



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


[jira] [Updated] (RANGER-4790) Request to support GDS policy import and export

2024-05-08 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya updated RANGER-4790:
--
Description: 
A feature enhancement is needed so that GDS policies can be imported and 
exported.

More information on the use case
 * Incremental Backups so that any changes can be rollback

 *  Audit existing GDS policies so we can catch any possible vulnerability. 

 * For testing purposes, need to synchronize a lower (staging) environment with 
a higher (prod) environment.
 * want to periodically take backup of gds (domains and datasets)
 * Sometimes we want to rebuild the domains and datasets using these backups. 
this is the import use case.
 * periodically tear down and recreate gds setups with automation
 

  was:
A feature enhancement is needed so that GDS policies can be imported and 
exported.

More information on the use case
 # Incremental Backups so that any changes can be rollback

 #  Audit existing GDS policies so we can catch any possible vulnerability. 

 # For testing purposes, need to synchronize a lower (staging) environment with 
a higher (prod) environment.
        4.  want to periodically take backup of gds (domains and datasets)
         5. Sometimes we want to rebuild the domains and datasets using these 
backups. this is the import use case.
         6.  periodically tear down and recreate gds setups with automation
 


> Request to support GDS policy import and export
> ---
>
> Key: RANGER-4790
> URL: https://issues.apache.org/jira/browse/RANGER-4790
> Project: Ranger
>  Issue Type: Improvement
>  Components: Ranger
>Reporter: Monika kachhadiya
>Priority: Major
>
> A feature enhancement is needed so that GDS policies can be imported and 
> exported.
> More information on the use case
>  * Incremental Backups so that any changes can be rollback
>  *  Audit existing GDS policies so we can catch any possible vulnerability. 
>  * For testing purposes, need to synchronize a lower (staging) environment 
> with a higher (prod) environment.
>  * want to periodically take backup of gds (domains and datasets)
>  * Sometimes we want to rebuild the domains and datasets using these backups. 
> this is the import use case.
>  * periodically tear down and recreate gds setups with automation
>  



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


[jira] [Created] (RANGER-4790) Request to support GDS policy import and export

2024-05-08 Thread Monika kachhadiya (Jira)
Monika kachhadiya created RANGER-4790:
-

 Summary: Request to support GDS policy import and export
 Key: RANGER-4790
 URL: https://issues.apache.org/jira/browse/RANGER-4790
 Project: Ranger
  Issue Type: Improvement
  Components: Ranger
Reporter: Monika kachhadiya


A feature enhancement is needed so that GDS policies can be imported and 
exported.

More information on the use case
 # Incremental Backups so that any changes can be rollback

 #  Audit existing GDS policies so we can catch any possible vulnerability. 

 # For testing purposes, need to synchronize a lower (staging) environment with 
a higher (prod) environment.
        4.  want to periodically take backup of gds (domains and datasets)
         5. Sometimes we want to rebuild the domains and datasets using these 
backups. this is the import use case.
         6.  periodically tear down and recreate gds setups with automation
 



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


[jira] (RANGER-4624) Add java patch to update changes in db

2023-12-21 Thread Monika kachhadiya (Jira)


[ https://issues.apache.org/jira/browse/RANGER-4624 ]


Monika kachhadiya deleted comment on RANGER-4624:
---

was (Author: JIRAUSER291264):
https://reviews.apache.org/r/74802/

> Add java patch to update changes in db
> --
>
> Key: RANGER-4624
> URL: https://issues.apache.org/jira/browse/RANGER-4624
> Project: Ranger
>  Issue Type: Sub-task
>  Components: admin
>Reporter: Subhrat Chaudhary
>Assignee: Monika kachhadiya
>Priority: Major
>
> We need to add java patches so for existing users, on upgrade following 
> changes are made in db:
>  * {{x_access_type_def.category}}
>  * {{{}x_service_version_info.gds_version{}}}{{{}{}}}



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


[jira] [Commented] (RANGER-4624) Add java patch to update changes in db

2023-12-21 Thread Monika kachhadiya (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17799488#comment-17799488
 ] 

Monika kachhadiya commented on RANGER-4624:
---

[Patch in review board|https://reviews.apache.org/r/74802/]

> Add java patch to update changes in db
> --
>
> Key: RANGER-4624
> URL: https://issues.apache.org/jira/browse/RANGER-4624
> Project: Ranger
>  Issue Type: Sub-task
>  Components: admin
>Reporter: Subhrat Chaudhary
>Assignee: Monika kachhadiya
>Priority: Major
>
> We need to add java patches so for existing users, on upgrade following 
> changes are made in db:
>  * {{x_access_type_def.category}}
>  * {{{}x_service_version_info.gds_version{}}}{{{}{}}}



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


[jira] [Assigned] (RANGER-4624) Add java patch to update changes in db

2023-12-21 Thread Monika kachhadiya (Jira)


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

Monika kachhadiya reassigned RANGER-4624:
-

Assignee: Monika kachhadiya

> Add java patch to update changes in db
> --
>
> Key: RANGER-4624
> URL: https://issues.apache.org/jira/browse/RANGER-4624
> Project: Ranger
>  Issue Type: Sub-task
>  Components: admin
>Reporter: Subhrat Chaudhary
>Assignee: Monika kachhadiya
>Priority: Major
>
> We need to add java patches so for existing users, on upgrade following 
> changes are made in db:
>  * {{x_access_type_def.category}}
>  * {{{}x_service_version_info.gds_version{}}}{{{}{}}}



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


[jira] [Commented] (RANGER-4394) Java patches to support GDS changes

2023-09-22 Thread Monika kachhadiya (Jira)


[ 
https://issues.apache.org/jira/browse/RANGER-4394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17768127#comment-17768127
 ] 

Monika kachhadiya commented on RANGER-4394:
---

Link to review request [https://reviews.apache.org/r/74620/]
Could not assign the Jira to myself

> Java patches to support GDS changes
> ---
>
> Key: RANGER-4394
> URL: https://issues.apache.org/jira/browse/RANGER-4394
> Project: Ranger
>  Issue Type: Sub-task
>  Components: admin
>Reporter: Subhrat Chaudhary
>Priority: Major
>
> We need java patches to support the changes in existing tables / addition of 
> new tables/columns in ranger DB.



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