yugabyte/yugabyte-db

[DocDB] IntentAwareIterator::Next() does not advance intent iterator

Open

#22,605 建立於 2024年5月29日

在 GitHub 查看
 (0 留言) (0 反應) (1 負責人)C (1,003 fork)batch import
area/docdbgood first issuekind/bugpriority/low

倉庫指標

Star
 (8,229 star)
PR 合併指標
 (平均合併 17天 21小時) (30 天內合併 92 個 PR)

描述

Jira Link: DB-11515

Description

Current implementation of the method:

void IntentAwareIterator::Next() {
  VLOG_WITH_FUNC(4);

  if (!status_.ok()) {
    return;
  }

  if (IsEntryRegular()) {
    SkipFutureRecords<Direction::kForward>(iter_.Next());
    FillEntry();
  }
}

There is no logic for the intent_iter_, which seems wrong as it should be moved next in some cases.

Currently, the method is used only from GetHelperBase::Prepare() for the row getter initialization. And it does not lead to any inconsistency, but gives an extra decoding (i.e. for a packed record or delete record) and maybe one extra Seek/Next call.

Issue Type

kind/bug

Warning: Please confirm that this issue does not contain any sensitive information

  • I confirm this issue does not contain any sensitive information.

貢獻者指南