You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/05/08 02:57:52 UTC
[incubator-doris] branch master updated: [UT] Fix bug for cache
unit test (#5766)
This is an automated email from the ASF dual-hosted git repository.
morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git
The following commit(s) were added to refs/heads/master by this push:
new 86d2ddc [UT] Fix bug for cache unit test (#5766)
86d2ddc is described below
commit 86d2ddc503878c157ea3089ce946517dd79c0f93
Author: xinghuayu007 <14...@qq.com>
AuthorDate: Sat May 8 10:57:09 2021 +0800
[UT] Fix bug for cache unit test (#5766)
For #5726 . Last commit is not logic perfect, which will cause some unit tests not passed.
---
be/src/runtime/cache/result_cache.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/be/src/runtime/cache/result_cache.cpp b/be/src/runtime/cache/result_cache.cpp
index 86539e1..b649491 100644
--- a/be/src/runtime/cache/result_cache.cpp
+++ b/be/src/runtime/cache/result_cache.cpp
@@ -140,7 +140,7 @@ void ResultCache::fetch(const PFetchCacheRequest* request, PFetchCacheResult* re
break;
}
}
- if (part_rowbatch_list.empty()) {
+ if (status == PCacheStatus::CACHE_OK && part_rowbatch_list.empty()) {
status = PCacheStatus::EMPTY_DATA;
}
result->set_status(status);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org