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

feat : Fallback to bucketAuto Strategy In Monngodb #158

Merged
merged 2 commits into from
Mar 24, 2025

Conversation

vikash390
Copy link
Collaborator

@vikash390 vikash390 commented Mar 17, 2025

Description

Introduces a fallback to the bucketAuto strategy when the splitVector strategy encounters issues in Atlas environments.

Fixes # (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Scenario A
  • Scenario B

Screenshots or Recordings

Related PR's (If Any):

@vikash390 vikash390 marked this pull request as ready for review March 20, 2025 10:20
@hash-data hash-data changed the base branch from master to staging March 24, 2025 13:17
hash-data
hash-data previously approved these changes Mar 24, 2025
Copy link
Collaborator

@hash-data hash-data left a comment

Choose a reason for hiding this comment

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

LGTM

@hash-data hash-data changed the title feat : Fallback to bucketAuto on failure. feat : Fallback to bucketAuto Strategy In Monngodb Mar 24, 2025
return chunks, nil
}

switch m.config.PartitionStrategy {
case "timestamp":
return timestampStrategy()
default:
return splitVectorStrategy()
chunks, err := splitVectorStrategy()
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

this can fail even if some network error happened.

Copy link
Contributor

Choose a reason for hiding this comment

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

we need to specifically check for split vector not supported kind of log

shubham19may
shubham19may previously approved these changes Mar 24, 2025
@hash-data hash-data force-pushed the feat/atlas-splitvector-fallback branch from 4f987ff to a1de349 Compare March 24, 2025 13:40
@hash-data hash-data merged commit f39c70d into staging Mar 24, 2025
5 checks passed
@hash-data hash-data deleted the feat/atlas-splitvector-fallback branch March 24, 2025 13:43
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.

3 participants