Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4313

fix typo in DefaultSchemaRegistryClient to achieve mvn test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • plugins
    • None
    • Patch

    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 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"

      ```

      Attachments

        Activity

          People

            Unassigned Unassigned
            coldestlin geehanlin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m