This is an automated email from the ASF dual-hosted git repository.
kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-2.0 by this push:
new ad0ffb4624a [branch-2.0](query) add debug log for check query visible
version #31217 (#31261)
ad0ffb4624a is described below
commit ad0ffb4624a67ca3614b39e446fd99cd3c2e332b
Author: HHoflittlefish777 <[email protected]>
AuthorDate: Fri Feb 23 09:42:53 2024 +0800
[branch-2.0](query) add debug log for check query visible version #31217
(#31261)
---
fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
index abf50fcbba3..49d961be5c8 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/planner/OlapScanNode.java
@@ -62,6 +62,7 @@ import org.apache.doris.common.ErrorCode;
import org.apache.doris.common.ErrorReport;
import org.apache.doris.common.FeConstants;
import org.apache.doris.common.UserException;
+import org.apache.doris.common.util.DebugUtil;
import org.apache.doris.common.util.Util;
import org.apache.doris.nereids.glue.translator.PlanTranslatorContext;
import org.apache.doris.qe.ConnectContext;
@@ -727,6 +728,10 @@ public class OlapScanNode extends ScanNode {
if (ConnectContext.get() != null) {
allowedTags = ConnectContext.get().getResourceTags();
needCheckTags = ConnectContext.get().isResourceTagsSet();
+ if (LOG.isDebugEnabled()) {
+ LOG.debug("query id: {}, partition id:{} visibleVersion: {}",
+ DebugUtil.printId(ConnectContext.get().queryId()),
partition.getId(), visibleVersion);
+ }
}
for (Tablet tablet : tablets) {
long tabletId = tablet.getId();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]