venkateshwaracholan opened a new pull request, #4390:
URL: https://github.com/apache/polaris/pull/4390

   ## Description
   
   With recent Quarkus version bumps introduced in #4336 and #4364, running the 
local developer command:
   
   ```bash
   ./gradlew run
   ```
   
   started failing with:
   
   ```text
   Failed to index: io.quarkus.test.ActivateSessionContext
   ```
   
   This is caused by a Quarkus issue:
   
   * quarkusio/quarkus#54001
   
   As suggested by @dimas-b and agreed by @jbonofre in #4382, this change 
switches the `run` convenience task from `quarkusRun` to `quarkusDev`.
   
   `./gradlew run` is intended as a local developer convenience workflow, and 
`quarkusDev` is the more appropriate task for this use case.
   
   ## Changes
   
   * Replace `quarkusRun` with `quarkusDev` in the custom `run` Gradle task.
   * Update the task configuration type from `QuarkusRun` to `QuarkusDev`.
   
   ```diff
   - dependsOn("quarkusRun")
   + dependsOn("quarkusDev")
   ```
   
   ```diff
   - tasks.named<QuarkusRun>("quarkusRun")
   + tasks.named<QuarkusDev>("quarkusDev")
   ```
   
   ## Before
   
   ```bash
   ./gradlew run
   ```
   
   failed with:
   
   ```text
   Execution failed for task ':polaris-server:quarkusRun'
   
   Failed to index: io.quarkus.test.ActivateSessionContext
   ```
   
   ## After
   
   ```bash
   ./gradlew run
   ```
   
   starts Polaris successfully:
   
   ```text
   2026-05-09 08:46:08,699 INFO  [io.quarkus] Apache Polaris Server 
1.4.0-SNAPSHOT on JVM (powered by Quarkus 3.35.2) started in 3.529s. Listening 
on: http://localhost:8181.
   2026-05-09 08:46:08,699 INFO  [io.quarkus] Profile dev activated. Live 
Coding activated.
   ```
   
   ## Docker / DevServices warning notes
   
   When Docker is not running locally, Quarkus DevServices emits startup 
warnings such as:
   
   ```text
   WARN  [org.testcontainers.dockerclient.DockerClientProviderStrategy]
   DOCKER_HOST unix:///var/run/docker.sock is not listening
   
   ERROR [org.testcontainers.dockerclient.DockerClientProviderStrategy]
   Could not find a valid Docker environment.
   ```
   
   and:
   
   ```text
   WARN  
[io.quarkus.datasource.deployment.devservices.DevServicesDatasourceProcessor]
   Please configure the datasource URL for default datasource or ensure the 
Docker daemon is up and running.
   
   WARN  [io.quarkus.mongodb.deployment.DevServicesMongoProcessor]
   Please configure datasource URL for default datasource or get a working 
docker instance
   ```
   
   These warnings are harmless for local Polaris development.
   
   To suppress them entirely:
   
   ```bash
   ./gradlew run "-Dquarkus.devservices.enabled=false"
   ```
   
   Startup output is then clean:
   
   ```text
   2026-05-09 08:50:33,582 INFO  [io.quarkus] Apache Polaris Server 
1.4.0-SNAPSHOT on JVM (powered by Quarkus 3.35.2) started in 6.732s. Listening 
on: http://localhost:8181.
   2026-05-09 08:50:33,583 INFO  [io.quarkus] Profile dev activated. Live 
Coding activated.
   ```
   
   ## Testing
   
   Verified locally:
   
   ```bash
   ./gradlew assemble
   ./gradlew run
   ./gradlew run "-Dquarkus.devservices.enabled=false"
   ```
   
   Closes #4382
   


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