Skip to content

engine: use Txn.Timestamp instead of OrigTimestamp for LogLogicalOp#28970

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/logicalFwd
Aug 22, 2018
Merged

engine: use Txn.Timestamp instead of OrigTimestamp for LogLogicalOp#28970
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/logicalFwd

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Aug 22, 2018

The OrigTimestamp was being used to give a timestamp to the
txn in the logical op log because that is the timestamp the
intent is written at. However, the intent can't actually
commit until its Timestamp. This was causing issues with
closed timestamps, which forwards the Txn.Timestamp but don't
affect the OrigTimestamp. Without this change we were hitting
an assertion in the rangefeed package where a new intent looked
like it was below the resolved timestamp.

Release note: None

The `OrigTimestamp` was being used to give a timestamp to the
txn in the logical op log because that is the timestamp the
intent is written at. However, the intent can't actually
commit until its `Timestamp`. This was causing issues with
closed timestamps, which forwards the `Txn.Timestamp` but don't
affect the `OrigTimestamp`. Without this change we were hitting
an assertion in the rangefeed package where a new intent looked
like it was below the resolved timestamp.

Release note: None
@nvb nvb requested review from a team and tbg August 22, 2018 17:52
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

Copy link
Copy Markdown
Member

@tbg tbg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewed 2 of 2 files at r1.
Reviewable status: :shipit: complete! 0 of 0 LGTMs obtained (and 1 stale)

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Aug 22, 2018

TFTR!

bors r+

craig bot pushed a commit that referenced this pull request Aug 22, 2018
28970: engine: use Txn.Timestamp instead of OrigTimestamp for LogLogicalOp r=nvanbenschoten a=nvanbenschoten

The `OrigTimestamp` was being used to give a timestamp to the
txn in the logical op log because that is the timestamp the
intent is written at. However, the intent can't actually
commit until its `Timestamp`. This was causing issues with
closed timestamps, which forwards the `Txn.Timestamp` but don't
affect the `OrigTimestamp`. Without this change we were hitting
an assertion in the rangefeed package where a new intent looked
like it was below the resolved timestamp.

Release note: None

Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 22, 2018

Build succeeded

@craig craig bot merged commit c19317a into cockroachdb:master Aug 22, 2018
@nvb nvb deleted the nvanbenschoten/logicalFwd branch August 22, 2018 21:59
craig bot pushed a commit that referenced this pull request Sep 4, 2018
29500: release-2.1: backport 7 rangefeed PRs r=nvanbenschoten a=nvanbenschoten

Backport:
  * 5/5 commits from "kv: give Transport a haircut" (#28855)
  * 1/1 commits from "engine: use Txn.Timestamp instead of OrigTimestamp for LogLogicalOp" (#28970)
  * 1/1 commits from "rangefeed: add release valve to logical op consumption" (#29076)
  * 3/3 commits from "kv: teach DistSender about RangeFeeds, use for changefeeds" (#28912)
  * 1/1 commits from "rangefeed: small perf-related changes" (#29134)
  * 2/2 commits from "kv: truncate RangeFeed span to range descriptor " (#29219)
  * 2/2 commits from "storage: hook closed timestamps into rangefeed" (#28974)

Please see individual PRs for details.

All cherry-picks were clean.

/cc @cockroachdb/release


Co-authored-by: Nathan VanBenschoten <nvanbenschoten@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants