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

fix: serve always only the latest objects #12487

Merged
merged 1 commit into from Jun 11, 2021

Conversation

harshavardhana
Copy link
Member

Description

fix: serve always only the latest objects

Motivation and Context

due to a historic bug, it is possible that
some objects might exist on multiple pools,
rely on ModTime to return the correct pool.

How to test this PR?

Create two distributed setups and then
combine them by creating duplicate objects

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Optimization (provides speedup with no functional changes)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • Fixes a regression (If yes, please add commit-id or PR # here)
  • Documentation updated
  • Unit tests added/updated

due to a historic bug, it is possible that
some objects might exist on multiple pools,
rely on ModTime to return the correct pool.
@minio-trusted
Copy link
Contributor

Mint Automation

Test Result
mint-large-bucket.sh ✔️
mint-fs.sh ✔️
mint-gateway-s3.sh ✔️
mint-erasure.sh ✔️
mint-dist-erasure.sh ✔️
mint-zoned.sh ✔️
mint-gateway-nas.sh ✔️
mint-compress-encrypt-dist-erasure.sh ✔️
Deleting image on docker hub
Deleting image locally

Copy link
Contributor

@kannappanr kannappanr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@poornas poornas left a comment

Choose a reason for hiding this comment

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

LGTM

@harshavardhana harshavardhana merged commit 0385ecb into minio:master Jun 11, 2021
@harshavardhana harshavardhana deleted the serve-latest branch June 11, 2021 06:07
klauspost added a commit to klauspost/minio that referenced this pull request Jun 14, 2021
Fix in minio#12487 assumes that slices with tiebreaks are sorted equally.

That is only the case for "stable" sort versions.

Fixes nil result being returned in multi-pool setups.
@klauspost klauspost mentioned this pull request Jun 14, 2021
2 tasks
klauspost added a commit to klauspost/minio that referenced this pull request Jun 14, 2021
Fix in minio#12487 assumes that slices with tiebreaks are sorted equally.

That is only the case for "stable" sort versions.

Fixes nil result being returned in multi-pool setups.
harshavardhana pushed a commit that referenced this pull request Jun 14, 2021
Fix in #12487 assumes that slices with tiebreaks are sorted equally.

That is only the case for "stable" sort versions.

Fixes nil result being returned in multi-pool setups.
harshavardhana pushed a commit that referenced this pull request Jun 14, 2021
Fix in #12487 assumes that slices with tiebreaks are sorted equally.

That is only the case for "stable" sort versions. Fixes nil result being returned in multi-pool setups.
harshavardhana pushed a commit that referenced this pull request Jun 14, 2021
Fix in #12487 assumes that slices with 
tiebreaks are sorted equally. That is only the case for "stable"  sort versions.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants