apache / apache/jmeter

5.6.2: JDBC Sampler initialization failure makes test fail without any visible error

Open
#6,174 4 comments 0 reactions 0 assignees View on GitHub
defect need info to-triage
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

### Expected behavior

I am trying to test different DB with JMeter 5.6.2 and I expect for the test to run without issues.

As example JDBC Connection Configuration for MSSQL is in the attached picture.
![JDBC Connection Configuration 5 6 2](https://github.com/apache/jmeter/assets/4747139/84921769-b4e0-492e-ac65-540ff985b97f)

### Actual behavior

When I run the test, nothing happens. No logs are written, nothing seems to be executed, no users are running. But when I try to close jmeter I get an message saying that I cannot do that since there is a test running.

I enabled debug logs for jdbc execution but no extra logs are present.

When doing the same test in Jmeter 5.4.3 (see attached JDBC Connection Configuration for MSSQL) it works.
![JDBC Connection Configuration 5 4 3](https://github.com/apache/jmeter/assets/4747139/85981f60-3038-4668-ad6f-b4caeb6de4b7)

This does not happen for all types of DB. It works for mongodb, mysql, mariadb, but id does not work for postgresql and mssql.

I am using the same jar files for jdbc drivers put in lib folder of both versions of jmeter.

### Steps to reproduce the problem

1. Setup a test for MSSQL or Postgresql in Jmeter 5.6.2
2. Run the test -> nothing happens, no logs are generated but also no results.
3. Try to close jmeter -> error message popup saying that a test is running.
4. Repeat with MSSQL 5.4.3 -> test is running successfully.

### JMeter Version

5.6.2

### Java Version

java version 11.0.16.1

### OS Version

Microsoft Windows [version 10.0.19044.3693]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.