Skip to content

prepare statement count gives negative value #42761

Closed
@YangKeao

Description

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

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions