• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 5420344211
88%

Build:
DEFAULT BRANCH: master
Ran 30 Jun 2023 07:31AM UTC
Jobs 1
Files 489
Run time 12s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jun 2023 07:18AM UTC coverage: 85.992% (+0.02%) from 85.969%
5420344211

push

github

locker
lua/xlog: don't ignore unknown header fields

The xlog reader Lua module uses the xlog_cursor_next_row, which decodes
the row header with xrow_header_decode. The latter silently ignores any
unknown fields, which complicates catching bugs when garbage is written
to a row header by mistake, for example, see #8783.

Let's parse a row header without using xrow_header_decode in the xlog
reader module, like we parse a row body, and output all unknown/invalid
keys as is.

To do that, we have to extend the xlog cursor API with the new method
xlog_cursor_next_row_raw that returns a pointer to the position in the
tx buffer where the next xrow is stored without advancing it. To avoid
a memory leak in case the caller fails to parse an xrow returned by this
function, we also have to move the call to xlog_tx_cursor_destroy from
xlog_tx_cursor_next_row to xlog_cursor_next_tx.

While we are at it,
 - Don't raise an error if a key type encountered in a row body is
   invalid (not an integer). Instead, silently ignore such keys.
 - Remove the useless body MsgPack validness check because we already
   check it after decoding the header.
 - Add error injection based tests to check all the corner cases.

NO_DOC=bug fix

63432 of 115746 branches covered (54.8%)

125 of 125 new or added lines in 3 files covered. (100.0%)

95093 of 110583 relevant lines covered (85.99%)

2842810.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 5420344211.1 30 Jun 2023 07:31AM UTC 0
85.99
GitHub Action Run
Source Files on build 5420344211
Detailed source file information is not available for this build.
  • Back to Repo
  • 8a25d170 on github
  • Prev Build on master (#5413664800)
  • Next Build on master (#5421927827)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc