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

HSEARCH-4736 Add offloading operation submitter #3400

Merged

Conversation

marko-bekhta
Copy link
Member

https://hibernate.atlassian.net/browse/HSEARCH-4736

I've tried to keep OperationSubmitter closed for the users, so they are forced to use whatever is provided with Search.
Also, with this new submitter type, it is somewhat possible to offload work in LuceneSyncWorkOrchestratorImpl but I wasn't sure if that's something worth supporting, so I left it more on the "idea level".

I've kept the same "hacks" for the BatchExecutor test as in the blocking case as it seems we might stumble upon the same issue with offloading.

Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

Thanks. I pushed two commits and explained why in the comments. I also have a few other comments, see below.

@marko-bekhta marko-bekhta force-pushed the feat/HSEARCH-4736-offloading-submitter branch 3 times, most recently from f443347 to 1aa3dc5 Compare February 3, 2023 17:05
@marko-bekhta marko-bekhta force-pushed the feat/HSEARCH-4736-offloading-submitter branch from 1aa3dc5 to 0613405 Compare February 6, 2023 17:57
Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

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

LGTM, just a few resource leak in tests. Feel free to merge after they're addressed. Thanks!

@marko-bekhta marko-bekhta force-pushed the feat/HSEARCH-4736-offloading-submitter branch from 0613405 to cf14b73 Compare February 7, 2023 10:37
@marko-bekhta marko-bekhta force-pushed the feat/HSEARCH-4736-offloading-submitter branch from cf14b73 to e2f3d49 Compare February 7, 2023 13:13
@sonarcloud
Copy link

sonarcloud bot commented Feb 7, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

83.3% 83.3% Coverage
3.5% 3.5% Duplication

@yrodiere yrodiere merged commit f2d57df into hibernate:main Feb 8, 2023
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