manojmukkamala opened a new issue, #280:
URL: https://github.com/apache/polaris/issues/280

   ### Is this a possible security vulnerability?
   
   - [X] This is NOT a possible security vulnerability
   
   ### Describe the bug
   
   Context: I am trying to use postgres as backend.
   
   docker build fails when ECLIPSELINK arg is set to true. 
   
   I've added `persistence-new.xml` under 
`polaris-service/src/main/resources/META-INF/persistence-new.xml` and updated 
`polaris-server.yml` as follows:
   ```
   metaStoreManager:
     # type: in-memory
     type: eclipse-link # uncomment to use eclipse-link as metastore
     conf-file: META-INF/persistence-new.xml
     persistence-unit: polaris-dev
     ```
   
   When I remove the build-arg, the build was successful but the container 
cannot start with error:
   ```
   io.dropwizard.configuration.ConfigurationParsingException: 
polaris-server.yml has an error:
    * Failed to parse configuration at: metaStoreManager; Could not resolve 
type id 'eclipse-link' as a subtype of 
`org.apache.polaris.core.persistence.MetaStoreManagerFactory`: known type ids = 
[in-memory] (for POJO property 'metaStoreManager')
   at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: 
org.apache.polaris.service.config.PolarisApplicationConfig["metaStoreManager"])
   ```
   
   ### To Reproduce
   
   `docker build . -t polaris_local_metastore --build-arg ECLIPSELINK=true`
   
   ### Actual Behavior
   
   ```
   77.81 All projects evaluated.
   77.81 
   77.81 FAILURE: Build failed with an exception.
   77.81 
   77.81 * What went wrong:
   77.81 10 actionable tasks: 10 executed
   77.81 Circular dependency between the following tasks:
   77.81 :polaris-service:jar
   77.81 \--- :polaris-service:shadowJar
   77.81      \--- :polaris-service:jar (*)
   77.81 
   77.81 (*) - details omitted (listed previously)
   77.81 
   77.81 
   77.81 * Try:
   77.81 > Run with --stacktrace option to get the stack trace.
   77.81 > Run with --debug option to get more log output.
   77.81 > Run with --scan to get full insights.
   77.81 > Get more help at https://help.gradle.org.
   77.81 
   77.81 BUILD FAILED in 1m 17s
   77.87 Some of the file system contents retained in the virtual file system 
are on file systems that Gradle doesn't support watching. The relevant state 
was discarded to ensure changes to these locations are properly detected. You 
can override this by explicitly enabling file system watching.
   ------
   
    1 warning found (use docker --debug to expand):
    - FromAsCasing: 'as' and 'FROM' keywords' casing do not match (line 23)
   Dockerfile:34
   --------------------
     32 |     
     33 |     # Build the rest catalog
     34 | >>> RUN ./gradlew --no-daemon --info -PeclipseLink=$ECLIPSELINK clean 
prepareDockerDist
     35 |     
     36 |     FROM 
registry.access.redhat.com/ubi9/openjdk-21-runtime:1.20-2.1721752928
   --------------------
   ERROR: failed to solve: process "/bin/sh -c ./gradlew --no-daemon --info 
-PeclipseLink=$ECLIPSELINK clean prepareDockerDist" did not complete 
successfully: exit code: 1
   ```
   
   ### Expected Behavior
   
   A successful build.
   
   ### Additional context
   
   NA
   
   ### System information
   
   Host: Mac OS
   Docker Desktop: v4.34.0


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to