Skip to content

Conversation

@bytelazy
Copy link

…pose SanityCheckLayer in mod.rs (#6646)

Which issue does this PR close?

Closes #.6646

Rationale for this change

What changes are included in this PR?

add SanityCheckLayer to detect unexpected list responses and expose SanityCheckLayer in mod.rs

Are there any user-facing changes?

No changes to existing APIs but this add a new layer to choose

@bytelazy bytelazy requested a review from Xuanwo as a code owner October 30, 2025 15:17
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Oct 30, 2025
@bytelazy bytelazy force-pushed the sanity-check-layer-6646 branch from 39e69a6 to 8e959c2 Compare October 30, 2025 15:47
@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. and removed size:M This PR changes 30-99 lines, ignoring generated files. labels Oct 30, 2025
match self.inner.next().await? {
Some(entry) => {
let p = entry.path();
if !p.starts_with(&self.prefix) {
Copy link
Member

Choose a reason for hiding this comment

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

Hi, our original issue is about checking for duplicate keys.

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I might have misunderstood the issue. By “duplicate keys,” do you mean entries returned by the List operation that share the same path? For example, entry1.path() == entry2.path()?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants