Skip to content

Commit

Permalink
[branch-2.0](query) add debug log for check query visible version #31217
Browse files Browse the repository at this point in the history
  • Loading branch information
sollhui authored Feb 23, 2024
1 parent 837d8ce commit ad0ffb4
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
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;
Expand Down Expand Up @@ -727,6 +728,10 @@ private void addScanRangeLocations(Partition partition,
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();
Expand Down

0 comments on commit ad0ffb4

Please sign in to comment.