Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undesirable change to JDBC Sampler behaviour in 5.6.3 #6345

Open
rondunn opened this issue Sep 17, 2024 · 2 comments
Open

Undesirable change to JDBC Sampler behaviour in 5.6.3 #6345

rondunn opened this issue Sep 17, 2024 · 2 comments

Comments

@rondunn
Copy link

rondunn commented Sep 17, 2024

Expected behavior

The following commit has introduced an undesirable change to the JDBC sampler.

945281c

Prior to this change, the "Limit Resultset" value would only apply when reading the result set, reading would stop after 'n' rows.

Now, by this change, the sampler calls SetMaxRows() to the limit value. This can then be used by the JDBC client and server to optimise the query, such as by pushing a LIMIT clause into the query plan which can terminate server processing before all results have been generated.

I believe this behaviour should be rolled back, as it invalidates a common requirement of database performance testing.

Actual behavior

No response

Steps to reproduce the problem

945281c

JMeter Version

5.6.3

Java Version

No response

OS Version

No response

@vlsi
Copy link
Collaborator

vlsi commented Sep 19, 2024

It might indeed make sense to split the property in two: "max rows" limit at JDBC level and "number of fetched rows" at the client level.

@rondunn
Copy link
Author

rondunn commented Sep 19, 2024

That is an excellent suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants