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

Creating IndexOptions using expireAfter method sets wrong options #4851

Closed
mozzer39 opened this issue Dec 10, 2024 · 1 comment
Closed

Creating IndexOptions using expireAfter method sets wrong options #4851

mozzer39 opened this issue Dec 10, 2024 · 1 comment
Assignees
Labels
type: bug A general bug

Comments

@mozzer39
Copy link

mozzer39 commented Dec 10, 2024

Hi!
I have noticed a bug in IndexOptions class. Using expireAfter(Duration duration) method should set expire field with given expiration time, but duration parameter is not used and unique option is set instead.

public static IndexOptions expireAfter(Duration duration) {
IndexOptions options = new IndexOptions();
options.unique = Unique.YES;
return options;
}

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Dec 10, 2024
@christophstrobl christophstrobl self-assigned this Dec 11, 2024
@christophstrobl christophstrobl added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Dec 11, 2024
@christophstrobl
Copy link
Member

Now that is something. Thank you @mozzer39 for reporting the issue. We'll get that fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants