projectnessie / nessie

Nessie: Transactional Catalog for Data Lakes with Git-like semantics
https://projectnessie.org
Apache License 2.0
1.04k stars 129 forks source link

Gatling simulations don't work #3635

Closed nastra closed 2 years ago

nastra commented 2 years ago

Running ./mvnw clean install -pl :nessie-perftest-simulations results in the below errors. The nessie-apprunner-maven-plugin starts the nessie server on a random port, but the Gatling simulations are all defaulting to port 19120 (https://github.com/projectnessie/nessie/blob/main/perftest/simulations/src/test/scala/org/projectnessie/perftest/gatling/CommitToBranchSimulation.scala#L187)

[INFO] --- gatling-maven-plugin:4.1.3:test (default) @ nessie-perftest-simulations ---
Simulation parameters:
   note:           
   num-users:      1
   op-rate:        0.0
   branch-name:    commits-1647435573470
   branch-mode:    BRANCH_PER_USER_SINGLE_TABLE
   table-prefix:   someTable1647435573493
   num-tables:     250
   num-commits:    100
   duration:       0

Simulation org.projectnessie.perftest.gatling.CommitToBranchSimulation started...

================================================================================
2022-03-16 13:59:33                                           0s elapsed
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=0      KO=100   )
> Nessie-Commit-2                                          (OK=0      KO=100   )
---- Errors --------------------------------------------------------------------
> java.util.NoSuchElementException: No attribute named 'branch'     100 (100.0%)
is defined

---- Commit-To-Branch ----------------------------------------------------------
[##########################################################################]100%
          waiting: 0      / active: 0      / done: 1     
================================================================================

Simulation org.projectnessie.perftest.gatling.CommitToBranchSimulation completed in 0 seconds
Parsing log file(s)...
Parsing log file(s) done
Generating reports...

================================================================================
---- Global Information --------------------------------------------------------
> request count                                        100 (OK=0      KO=100   )
> min response time                                      0 (OK=-      KO=0     )
> max response time                                      5 (OK=-      KO=5     )
> mean response time                                     0 (OK=-      KO=0     )
> std deviation                                          1 (OK=-      KO=1     )
> response time 50th percentile                          0 (OK=-      KO=0     )
> response time 75th percentile                          0 (OK=-      KO=0     )
> response time 95th percentile                          0 (OK=-      KO=0     )
> response time 99th percentile                          1 (OK=-      KO=1     )
> mean requests/sec                                    100 (OK=-      KO=100   )
---- Response Time Distribution ------------------------------------------------
> t < 800 ms                                             0 (  0%)
> 800 ms < t < 1200 ms                                   0 (  0%)
> t > 1200 ms                                            0 (  0%)
> failed                                               100 (100%)
---- Errors --------------------------------------------------------------------
> java.util.NoSuchElementException: No attribute named 'branch'     100 (100.0%)
is defined
================================================================================

Reports generated in 0s.
Please open the following file: /home/nastra/Development/workspace/nessie/perftest/simulations/target/gatling/committobranchsimulation-20220316125933634/index.html
Simulation parameters:
   note:           
   num-users:      1
   op-rate:        0.0
   num-branches:   100

Simulation org.projectnessie.perftest.gatling.CreateManyBranchesSimulation started...

================================================================================
2022-03-16 13:59:35                                           0s elapsed
---- Requests ------------------------------------------------------------------
> Global                                                   (OK=0      KO=100   )
> Nessie-Create branch-2                                   (OK=0      KO=100   )
---- Errors --------------------------------------------------------------------
> java.util.NoSuchElementException: No attribute named 'defaultB    100 (100.0%)
ranch' is defined

---- Commit-To-Branch ----------------------------------------------------------
[##########################################################################]100%
          waiting: 0      / active: 0      / done: 1     
================================================================================

Simulation org.projectnessie.perftest.gatling.CreateManyBranchesSimulation completed in 0 seconds
Parsing log file(s)...
Parsing log file(s) done
Generating reports...
tomekl007 commented 2 years ago

https://github.com/projectnessie/nessie-apprunner/blob/e8bc56389bb974fd76d718015caa441374b357b0/apprunner-gradle-plugin/src/main/java/org/projectnessie/quarkus/gradle/QuarkusAppExtension.java#L41-L52