Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-2625

Benchmark in Quarkus requires application.properties

    XMLWordPrintable

Details

    Description

      Even if I provide a full-fledged solverBenchmarkConfig.xml, OptaPlanner Benchmark still requires at least one property to be specified in application.properties.

      This is confusing and leads to situations where the config is split between the properties and the XML.

      When the property is removed, I get:

      2022-01-10 08:30:27,046 ERROR [io.qua.run.Application] (Quarkus Main Thread) Failed to start application (with profile dev): java.lang.IllegalStateException: At least one of the properties quarkus.optaplanner.benchmark.solver.termination.spent-limit, quarkus.optaplanner.benchmark.solver.termination.best-score-limit, quarkus.optaplanner.benchmark.solver.termination.unimproved-spent-limit is required if the inherited solver config does not have termination configured.

      This happens even when I actually have the <inheritedSolverBenchmark /> configured.

      Attachments

        Activity

          People

            cchianel Christopher Chianelli
            lpetrovi@redhat.com Lukáš Petrovický (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: