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

geehanlin updated RANGER-4313:
------------------------------
    Description: 
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

 

```

 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"

```

  was:
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)

```


> 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
>          Time Spent: 10m
>  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
>  
> ```
>  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