Skip to content

storage: improve the txnmeta and ts pretty-printers #43183

@knz

Description

@knz

Found by @petermattis in #42250 (review)

    error: (*withstack.withStack:) cannot write to "k" at timestamp 0.-00000001,0

What's with the oddly formatted timestamp? 0.-0...?

    txn: "A" meta={id=00000000 key="k" pri=0.00000000 epo=0 ts=0.000000000,1 min=0.000000000,0 seq=0} rw=true stat=PENDING rts=0.000000000,1 wto=false max=0.000000000,0

There are a lot of 0.00000000 values in these tests. It would massively reduce visual clutter if they could be abbreviated somehow.

Jira issue: CRDB-5293

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-storageRelating to our storage engine (Pebble) on-disk storage.C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)T-kvKV Team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions