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

build: upgrade abseil and fix serde breakage #15249

Merged
merged 5 commits into from
Dec 2, 2023

Conversation

dotnwat
Copy link
Member

@dotnwat dotnwat commented Nov 30, 2023

Upgrade abseil and fix the resulting serde breakage.

Corresponding vtools PR to see the build result https://github.com/redpanda-data/vtools/pull/2372.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.2.x
  • v23.1.x
  • v22.3.x

Release Notes

  • none

@dotnwat dotnwat requested review from BenPope and a team as code owners November 30, 2023 20:40
@dotnwat dotnwat requested review from gousteris and removed request for a team November 30, 2023 20:40
@rockwotj
Copy link
Contributor

did you mean to have 1e61d66 in there?

@dotnwat
Copy link
Member Author

dotnwat commented Nov 30, 2023

did you mean to have 1e61d66 in there?

no i just dropped it not sure how that snuck in there

@@ -366,7 +367,7 @@ cluster_recovery_backend::find_controller_snapshot_in_bucket(
const size_t snap_size = co_await reader.get_snapshot_size();
auto snap_buf_parser = iobuf_parser{
co_await read_iobuf_exactly(reader.input(), snap_size)};
snapshot = serde::read<cluster::controller_snapshot>(
snapshot = co_await serde::read_async<cluster::controller_snapshot>(
Copy link
Member Author

Choose a reason for hiding this comment

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

this is necessary because the synchronous versions that had been using reflection no longer function.

Copy link
Contributor

Choose a reason for hiding this comment

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

Side note, but it would be great to somehow explicitly mark sync serde forbidden for the snapshot struct and not rely on is_standard_layout implicitly being false.

rockwotj
rockwotj previously approved these changes Nov 30, 2023
template<typename T>
requires std::is_standard_layout_v<T>
Copy link
Contributor

Choose a reason for hiding this comment

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

can't we just do something like requires reflection::to_tuple(T{})? That would be easier to understand IMO.

src/v/cluster/tests/serialization_rt_test.cc Outdated Show resolved Hide resolved
Upgraded abseil containers cause containing types to no longer have
standard layout, so reflection doesn't work.

Signed-off-by: Noah Watkins <[email protected]>
This test depended on types being both async and sync serde enabled.
However, this is no longer the case with the changes from abseil and its
affect on standard layout of types.

Signed-off-by: Noah Watkins <[email protected]>
Also moves the dependency to be earlier in the deps list since it is so
foundational.

Signed-off-by: Noah Watkins <[email protected]>
rockwotj
rockwotj previously approved these changes Dec 1, 2023
ztlpn
ztlpn previously approved these changes Dec 1, 2023
@dotnwat
Copy link
Member Author

dotnwat commented Dec 1, 2023

Unit test failure was #13275

@dotnwat dotnwat dismissed stale reviews from ztlpn and rockwotj via 4fe7f43 December 1, 2023 21:12
New checks in abseil revealed:

13: [/home/nwatkins/src/redpanda/vbuild/debug/clang/rp_deps_install/include/absl/container/internal/raw_hash_set.h : 1259] RAW: Invalid iterator comparison. Comparing iterator with an end() iterator from a different hashtable.
13: ==1795828==WARNING: ASan is ignoring requested __asan_handle_no_return: stack type: default top: 0x7fa25cf16000; bottom 0x7ffd07b05000; size: 0xffffffa555411000 (-389411696640)
13: False positive error reports may follow
13: For details see google/sanitizers#189
13: unknown location(0): fatal error: in "complex_uuid_types_test": signal: SIGABRT (application abort requested)

Signed-off-by: Noah Watkins <[email protected]>
@dotnwat
Copy link
Member Author

dotnwat commented Dec 1, 2023

Fixed a bug in the uuid unit test that the abseil upgrade revealed.

4fe7f43

@dotnwat dotnwat merged commit 0d2dcfe into redpanda-data:dev Dec 2, 2023
19 checks passed
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.

3 participants