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

OAK-10766 | Make lease time out configurable for individual lanes #1429

Merged
merged 2 commits into from
Apr 22, 2024

Conversation

nit0906
Copy link
Contributor

@nit0906 nit0906 commented Apr 19, 2024

Lease time out is required to prevent concurrent updates in case of 2 oak instances simultaneously trying to upgrade the async indexes.
This can be a big problem in case of lucene indexes however not so much in case of elastic indexes. Projects implementing oak can have different types of indexes configured on different async lanes, so it can be useful to provide them with an option to configure different lease time outs for different lanes.

Also, in case of lucene indexes, nrt part of the index usually provides support in case of the lease time out duration, however elastic indexes don't have nrt support, so might make sense to be able to configure a lane with only elastic indexes with a lesser lease time out.

The PR maintains backward compatibility. keeping the general least time out config in place. Only if the new per lane lease time out is configured - it would be given priority, otherwise the general lease time out property will be picked up.

@nit0906 nit0906 merged commit c422207 into apache:trunk Apr 22, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants