This is an automated email from the ASF dual-hosted git repository.
yiguolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new f848451a1c2 Revert "[fix](metrics) Fix wrong scanner metrics (#60966)"
(#61037)
f848451a1c2 is described below
commit f848451a1c238bf4315a9be7dec242821a5d79c4
Author: Gabriel <[email protected]>
AuthorDate: Thu Mar 5 10:16:52 2026 +0800
Revert "[fix](metrics) Fix wrong scanner metrics (#60966)" (#61037)
This reverts commit 85d9e5a1e4703eea4647c595d038ffd6ef31e7ac.
### What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [ ] Regression test
- [ ] Unit Test
- [ ] Manual test (add detailed scripts or steps below)
- [ ] No need to test or manual test. Explain why:
- [ ] This is a refactor/code format and no logic has been changed.
- [ ] Previous test can cover this change.
- [ ] No code files have been changed.
- [ ] Other reason <!-- Add your reason? -->
- Behavior changed:
- [ ] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [ ] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR
should merge into -->
---
be/src/vec/exec/scan/olap_scanner.cpp | 24 ++++++++++++------------
1 file changed, 12 insertions(+), 12 deletions(-)
diff --git a/be/src/vec/exec/scan/olap_scanner.cpp
b/be/src/vec/exec/scan/olap_scanner.cpp
index 2ec44a55645..48e7ac34d85 100644
--- a/be/src/vec/exec/scan/olap_scanner.cpp
+++ b/be/src/vec/exec/scan/olap_scanner.cpp
@@ -727,21 +727,21 @@ void OlapScanner::_collect_profile_before_close() {
// Update counters from tablet reader's stats
auto& stats = _tablet_reader->stats();
auto* local_state = (pipeline::OlapScanLocalState*)_local_state;
- COUNTER_SET(local_state->_io_timer, stats.io_ns);
+ COUNTER_UPDATE(local_state->_io_timer, stats.io_ns);
COUNTER_UPDATE(local_state->_read_compressed_counter,
stats.compressed_bytes_read);
COUNTER_UPDATE(local_state->_scan_bytes, stats.uncompressed_bytes_read);
- COUNTER_SET(local_state->_decompressor_timer, stats.decompress_ns);
+ COUNTER_UPDATE(local_state->_decompressor_timer, stats.decompress_ns);
COUNTER_UPDATE(local_state->_read_uncompressed_counter,
stats.uncompressed_bytes_read);
- COUNTER_SET(local_state->_block_load_timer, stats.block_load_ns);
- COUNTER_SET(local_state->_block_load_counter, stats.blocks_load);
- COUNTER_SET(local_state->_block_fetch_timer, stats.block_fetch_ns);
- COUNTER_SET(local_state->_delete_bitmap_get_agg_timer,
stats.delete_bitmap_get_agg_ns);
- COUNTER_SET(local_state->_scan_rows, stats.raw_rows_read);
- COUNTER_SET(local_state->_vec_cond_timer, stats.vec_cond_ns);
- COUNTER_SET(local_state->_short_cond_timer, stats.short_cond_ns);
- COUNTER_SET(local_state->_expr_filter_timer, stats.expr_filter_ns);
- COUNTER_SET(local_state->_block_init_timer, stats.block_init_ns);
- COUNTER_SET(local_state->_block_init_seek_timer, stats.block_init_seek_ns);
+ COUNTER_UPDATE(local_state->_block_load_timer, stats.block_load_ns);
+ COUNTER_UPDATE(local_state->_block_load_counter, stats.blocks_load);
+ COUNTER_UPDATE(local_state->_block_fetch_timer, stats.block_fetch_ns);
+ COUNTER_UPDATE(local_state->_delete_bitmap_get_agg_timer,
stats.delete_bitmap_get_agg_ns);
+ COUNTER_UPDATE(local_state->_scan_rows, stats.raw_rows_read);
+ COUNTER_UPDATE(local_state->_vec_cond_timer, stats.vec_cond_ns);
+ COUNTER_UPDATE(local_state->_short_cond_timer, stats.short_cond_ns);
+ COUNTER_UPDATE(local_state->_expr_filter_timer, stats.expr_filter_ns);
+ COUNTER_UPDATE(local_state->_block_init_timer, stats.block_init_ns);
+ COUNTER_UPDATE(local_state->_block_init_seek_timer,
stats.block_init_seek_ns);
COUNTER_UPDATE(local_state->_block_init_seek_counter,
stats.block_init_seek_num);
COUNTER_UPDATE(local_state->_segment_generate_row_range_by_keys_timer,
stats.generate_row_ranges_by_keys_ns);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]