Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compat: add support for some tx types #5832

Merged
merged 9 commits into from
Aug 4, 2022
Merged

Conversation

andrwng
Copy link
Contributor

@andrwng andrwng commented Aug 4, 2022

Cover letter

Plugs some message types into the serde compat testing framework:

  • cluster::commit_tx
  • cluster::abort_tx
  • cluster::begin_group_tx
  • cluster::prepare_group_tx

Backport Required

  • not a bug fix
  • papercut/not impactful enough to backport
  • v22.2.x
  • v22.1.x
  • v21.11.x

Release notes

  • none

graphcareful
graphcareful previously approved these changes Aug 4, 2022
src/v/compat/commit_tx_compat.h Outdated Show resolved Hide resolved
src/v/compat/commit_tx_generator.h Outdated Show resolved Hide resolved
- cluster::commit_tx
- cluster::abort_tx
- cluster::begin_group_tx
- cluster::prepare_group_tx
When running the test, I saw an error like:

/home/andrew/Repos/redpanda/vbuild/llvm/install/bin/../include/c++/v1/__chrono/duration.h:97:59: runtime error: signed integer overflow: -9223372036854775808 * 1000000 cannot be represented in type 'long long'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /home/andrew/Repos/redpanda/vbuild/llvm/install/bin/../include/c++/v1/__chrono/duration.h:97:59 in

Interestingly enough the test was happy to continue with the error and report
OK, but still it's worth addressing.
@andrwng
Copy link
Contributor Author

andrwng commented Aug 4, 2022

@bharathv I updated one of your limit cases to use a clamped min/max duration. I'm not sure why it didn't fail the test, but running locally I spotted a UB error message.

@bharathv
Copy link
Contributor

bharathv commented Aug 4, 2022

I updated one of your limit cases to use a clamped min/max duration. I'm not sure why it didn't fail the test, but running locally I spotted a UB error message.

ya good catch.. I didn't notice it.

@andrwng
Copy link
Contributor Author

andrwng commented Aug 4, 2022

CI failures:
#5378
#5854
#5276

@andrwng andrwng merged commit 80f1dc7 into redpanda-data:dev Aug 4, 2022
@andrwng andrwng deleted the compat-tx branch August 4, 2022 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants