Skip to content

Commit

Permalink
executor: fix cte mem tracker failpoint condition again (#54523)
Browse files Browse the repository at this point in the history
close #54379
  • Loading branch information
guo-shaoge authored Jul 9, 2024
1 parent 8f0db6f commit 887637b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/executor/cte.go
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ func (p *cteProducer) computeRecursivePart(ctx context.Context) (err error) {
iterNum++
failpoint.Inject("assertIterTableSpillToDisk", func(maxIter failpoint.Value) {
if iterNum > 0 && iterNum < uint64(maxIter.(int)) && err == nil {
if p.iterInTbl.GetDiskBytes() == 0 || p.iterOutTbl.GetDiskBytes() == 0 || p.resTbl.GetDiskBytes() == 0 {
if p.iterInTbl.GetDiskBytes() == 0 && p.iterOutTbl.GetDiskBytes() == 0 && p.resTbl.GetDiskBytes() == 0 {
p.logTbls(ctx, err, iterNum, zapcore.InfoLevel)
panic("assert row container spill disk failed")
}
Expand Down

0 comments on commit 887637b

Please sign in to comment.