This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new e55487603ba branch-3.0: [fix](test) fix case test_index_io_context 
#47290 (#47334)
e55487603ba is described below

commit e55487603ba514dfd044f88c02182b59230ae9a7
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Thu Jan 23 13:14:52 2025 +0800

    branch-3.0: [fix](test) fix case test_index_io_context #47290 (#47334)
    
    Cherry-picked from #47290
    
    Co-authored-by: zzzxl <yangs...@selectdb.com>
---
 .../olap/rowset/segment_v2/inverted_index_fs_directory.cpp | 14 --------------
 .../suites/fault_injection_p0/test_index_io_context.groovy |  4 +---
 2 files changed, 1 insertion(+), 17 deletions(-)

diff --git a/be/src/olap/rowset/segment_v2/inverted_index_fs_directory.cpp 
b/be/src/olap/rowset/segment_v2/inverted_index_fs_directory.cpp
index e06ce69b7b2..b1d1af7ee3c 100644
--- a/be/src/olap/rowset/segment_v2/inverted_index_fs_directory.cpp
+++ b/be/src/olap/rowset/segment_v2/inverted_index_fs_directory.cpp
@@ -244,20 +244,6 @@ void DorisFSDirectory::FSIndexInput::readInternal(uint8_t* 
b, const int32_t len)
         _handle->_fpos = _pos;
     }
 
-    DBUG_EXECUTE_IF(
-            "DorisFSDirectory::FSIndexInput::readInternal", ({
-                static thread_local std::unordered_map<const TUniqueId*, 
io::FileCacheStatistics*>
-                        thread_file_cache_map;
-                auto it = thread_file_cache_map.find(_io_ctx.query_id);
-                if (it != thread_file_cache_map.end()) {
-                    if (_io_ctx.file_cache_stats != it->second) {
-                        _CLTHROWA(CL_ERR_IO, "File cache statistics mismatch");
-                    }
-                } else {
-                    thread_file_cache_map[_io_ctx.query_id] = 
_io_ctx.file_cache_stats;
-                }
-            }));
-
     Slice result {b, (size_t)len};
     size_t bytes_read = 0;
     Status st = _handle->_reader->read_at(_pos, result, &bytes_read, &_io_ctx);
diff --git 
a/regression-test/suites/fault_injection_p0/test_index_io_context.groovy 
b/regression-test/suites/fault_injection_p0/test_index_io_context.groovy
index f5759e7cfc7..8dd82ccb304 100644
--- a/regression-test/suites/fault_injection_p0/test_index_io_context.groovy
+++ b/regression-test/suites/fault_injection_p0/test_index_io_context.groovy
@@ -15,7 +15,7 @@
 // specific language governing permissions and limitations
 // under the License.
 
-suite("test_index_io_context", "nonConcurrent") {
+suite("test_index_io_context", "p0") {
     def tableName1 = "test_index_io_context1"
     def tableName2 = "test_index_io_context2"
 
@@ -79,7 +79,6 @@ suite("test_index_io_context", "nonConcurrent") {
         sql """ set enable_common_expr_pushdown = true; """
 
         try {
-            
GetDebugPoint().enableDebugPointForAllBEs("DorisFSDirectory::FSIndexInput::readInternal")
             qt_sql """ select count() from ${tableName1} where request 
match_any 'ticket_quest_bg2.jpg'; """
             qt_sql """ select count() from ${tableName1} where request 
match_any 'ticket_quest_bg2.jpg'; """
             qt_sql """ select count() from ${tableName1} where request 
match_any 'ticket_quest_bg2.jpg'; """
@@ -105,7 +104,6 @@ suite("test_index_io_context", "nonConcurrent") {
             qt_sql """ select count() from ${tableName2} where request 
match_phrase 'ticket_quest_bg2.jpg ~10+'; """
             qt_sql """ select count() from ${tableName2} where request 
match_phrase 'ticket_quest_bg2.jpg ~10+'; """
         } finally {
-            
GetDebugPoint().disableDebugPointForAllBEs("DorisFSDirectory::FSIndexInput::readInternal")
         }
     } finally {
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to