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

prepare statement count gives negative value #42761

Closed
YangKeao opened this issue Apr 3, 2023 · 1 comment
Closed

prepare statement count gives negative value #42761

YangKeao opened this issue Apr 3, 2023 · 1 comment
Assignees
Labels
found/gs found by gs severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@YangKeao
Copy link
Member

YangKeao commented Apr 3, 2023

Use the following sysbench lua script:

function thread_init()
  drv = sysbench.sql.driver()
  con = drv:connect()

  stmt = con:prepare(string.format([[
        INSERT INTO t(j, v) VALUES (?, '%s')
       ]], rand_varstr(35840, 35840)))
end

function thread_done()
  stmt:close()
  con:disconnect()
end

After stopping and restarting this benchmark several times, the grafana panel of prepare statement count turns into negative value:

image

@YangKeao YangKeao added type/bug The issue is confirmed as a bug. sig/sql-infra SIG: SQL Infra severity/minor labels Apr 3, 2023
@YangKeao YangKeao self-assigned this Apr 3, 2023
@YangKeao
Copy link
Member Author

Fixed by #49073

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
found/gs found by gs severity/minor sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

No branches or pull requests

2 participants