The executor maybe still refering `txn` inside the Next() function. Do not call txn.Commit() until the executor close.
set config