Skip to content

Commit

Permalink
fix: fix metrics (#3147)
Browse files Browse the repository at this point in the history
Signed-off-by: Song Gao <[email protected]>
  • Loading branch information
Yisaer authored Aug 28, 2024
1 parent 56c36ac commit 16b14d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ corss_build_for_rpm.tar

.vscode/
tools/lint/bin/
go.work.sum
2 changes: 1 addition & 1 deletion internal/topo/node/batch_op.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ func (b *BatchOp) ingest(ctx api.StreamContext, item any, checkSize bool) {
b.currIndex++
if checkSize && b.currIndex >= b.batchSize {
b.send()
b.statManager.IncTotalRecordsOut()
}
b.statManager.ProcessTimeEnd()
b.statManager.IncTotalMessagesProcessed(1)
Expand All @@ -133,6 +132,7 @@ func (b *BatchOp) send() {
})

b.Broadcast(b.buffer)
b.statManager.IncTotalRecordsOut()
// Reset buffer
b.buffer = &xsql.WindowTuples{
Content: make([]xsql.Row, 0, b.batchSize),
Expand Down

0 comments on commit 16b14d7

Please sign in to comment.