This is an automated email from the ASF dual-hosted git repository.

hubcio pushed a commit to branch feat/partition-routing
in repository https://gitbox.apache.org/repos/asf/iggy.git


The following commit(s) were added to refs/heads/feat/partition-routing by this 
push:
     new 2ee092323 test(consensus): align same-view suffix fixture
2ee092323 is described below

commit 2ee0923234243b6bd4a5493e14aa48dd01a5adaa
Author: Hubert Gruszecki <[email protected]>
AuthorDate: Wed Oct 14 14:26:06 2026 +0200

    test(consensus): align same-view suffix fixture
    
    Borrow the canonical header bytes to preserve their alignment.
    Vec<u8> does not guarantee PrepareHeader alignment under Miri.
---
 core/consensus/src/impls.rs | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/core/consensus/src/impls.rs b/core/consensus/src/impls.rs
index c01b95267..fd96e580a 100644
--- a/core/consensus/src/impls.rs
+++ b/core/consensus/src/impls.rs
@@ -5532,13 +5532,11 @@ mod timestamp_clamp_tests {
             ..PrepareHeader::default()
         };
         canonical.checksum = canonical.identity_checksum();
-        let mut suffix = vec![0; size_of::<PrepareHeader>()];
-        crate::encode_prepare_headers(&[canonical], &mut suffix);
 
         let actions = consensus.handle_start_view(
             PlaneKind::Metadata,
             make_start_view(VIEW, HEAD, HEAD, primary, 0).header(),
-            &suffix,
+            bytemuck::bytes_of(&canonical),
         );
 
         assert!(!actions.is_empty());

Reply via email to