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

Madhan Neethiraj resolved RANGER-4313.
--------------------------------------
    Fix Version/s: 3.0.0
                   2.6.0
       Resolution: Fixed

[~coldestlin]  - thank you for the fix. It is merged in master and ranger-2.6 
branches.

 
{noformat}
commit de085b8b1ea3495b15cc8654fc7e818839228bfd
Author: Gee <coldest...@qq.com>
Date:   Tue Sep 10 22:43:46 2024 +0800

    RANGER-4313: fix typo in DefaultSchemaRegistryClient (#272)
{noformat}
 
{noformat}
commit 2df63fd5f16d9216117eaa3d90951d828b687e27
Author: Gee <coldest...@qq.com>
Date:   Tue Sep 10 22:43:46 2024 +0800

    RANGER-4313: fix typo in DefaultSchemaRegistryClient (#272)

    (cherry picked from commit de085b8b1ea3495b15cc8654fc7e818839228bfd)
{noformat}

> fix typo in DefaultSchemaRegistryClient to achieve mvn test
> -----------------------------------------------------------
>
>                 Key: RANGER-4313
>                 URL: https://issues.apache.org/jira/browse/RANGER-4313
>             Project: Ranger
>          Issue Type: Bug
>          Components: plugins
>            Reporter: geehanlin
>            Priority: Minor
>             Fix For: 3.0.0, 2.6.0
>
>         Attachments: image-2023-07-13-12-27-40-647.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> fix typo in DefaultSchemaRegistryClient, otherwise `mvn test` will fail like 
> below
>  
> ```
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running 
> org.apache.ranger.services.schema.registry.client.SchemaRegistryResourceMgrTest
> [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.584 
> s <<< FAILURE! - in 
> org.apache.ranger.services.schema.registry.client.SchemaRegistryResourceMgrTest
> [ERROR] 
> org.apache.ranger.services.schema.registry.client.SchemaRegistryResourceMgrTest.getSchemaRegistryResources
>   Time elapsed: 0.424 s  <<< ERROR!
> java.lang.Error:
> Unresolved compilation problem:
>         Syntax error on token ";", delete this token
>         at 
> org.apache.ranger.services.schema.registry.client.connection.DefaultSchemaRegistryClient.<init>(DefaultSchemaRegistryClient.java:36)
>         at 
> org.apache.ranger.services.schema.registry.client.AutocompletionAgent.<init>(AutocompletionAgent.java:50)
>         at 
> org.apache.ranger.services.schema.registry.client.util.TestAutocompletionAgent.<init>(TestAutocompletionAgent.java:28)
>         at 
> org.apache.ranger.services.schema.registry.client.SchemaRegistryResourceMgrTest.getSchemaRegistryResources(SchemaRegistryResourceMgrTest.java:39)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
>         at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
>         at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>         at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
>         at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> ```
>  
>  
> mvn version 3.6.3 + java 1.8
> ```
>  mvn -v
> Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
> Maven home: /home/ubuntu/.sdkman/candidates/maven/current
> Java version: 1.8.0_372, vendor: Tencent, runtime: 
> /home/ubuntu/.sdkman/candidates/java/8.0.372-kona/jre
> Default locale: en, platform encoding: UTF-8
> OS name: "linux", version: "5.15.0-72-generic", arch: "amd64", family: "unix"
> ```



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

Reply via email to