📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

ti fs-journal read-journal-entries



Reads entries from one journal in sequence order.

Syntax

ti fs-journal read-journal-entries --journal-id <string> [--after-seq <int64>] [--file-system-id <string>] [--fs-token <string>] [--help] [--limit <int32>] [--version]

Options

  • --journal-id <string>: Journal ID. [required]
  • --after-seq <int64>: Read entries after this sequence.
  • --file-system-id <string>: Select the file system. You can also set TI_FS_FILE_SYSTEM_ID.
  • --fs-token <string>: Set the file system user token. If omitted, uses TI_FS_TOKEN.
  • --help: Display help information.
  • --limit <int32>: Maximum entries to read. [default: 100]
  • --version: Display version information.

For options shared by all commands, see Global options.

Examples

  • Read journal entries:

    # Return the first page of ordered entries for a journal. ti fs-journal read-journal-entries --file-system-id <file-system-id> --journal-id jrn-demo
  • Continue after a sequence number:

    # Read the next page after the last sequence processed by a consumer. ti fs-journal read-journal-entries --file-system-id <file-system-id> --journal-id jrn-demo --after-seq 100 --limit 50

Was this page helpful?