Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39525: workload/ycsb: Use StmtContext instead of Stmt r=jeffrey-xiao a=jeffrey-xiao `StmtContext` allows `context.DeadlineExceeded` error to be returned consistently. Using `Stmt` would sometimes return `sql: transaction has already been committed or rolled back` causing the workload to fail. Additionally, sometimes a context cancellation during a transaction can result in sql.ErrNoRows instead of the appropriat econtext.DeadlineExceeded. In this case, we just return ctx.Err(). See lib/pq#874. Fixes #39521. `workload run ycsb --drop --insert-count=1000000 --splits=100 --workload=F --concurrency=64 --ramp=1m --duration=10m` terminates successfully with this change. Release note: None Co-authored-by: Jeffrey Xiao <jeffrey.xiao1998@gmail.com>
- Loading branch information