Skip to content

Fix blocking code for index and mapping creation in reactive repo - #2644

Closed
Arooba-git wants to merge 1 commit into
spring-projects:mainfrom
Arooba-git:fix-blocking-code
Closed

Arooba-git wants to merge 1 commit into
spring-projects:mainfrom
Arooba-git:fix-blocking-code

Conversation

@Arooba-git

@Arooba-git Arooba-git commented Jul 21, 2023

Copy link
Copy Markdown

Hi! :)

Currently the test cases for reactive modules are mostly failing due to prevalence of the.block() operator in the test cases. However this PR addresses the blocking code in the main repo:

Screen Shot 2023-07-22 at 6 27 51 AM

The createIndexAndMappingIfNeeded method in the SimpleReactiveElasticsearchRepository have been slightly modified to remove the .block operator, and this eliminates most of the exceptions related to blocking code. The test cases were run before and after the fix and some test cases are now passing (others still failing of course due to the .block operator in the test case itself):

Before
Screen Shot 2023-07-22 at 8 00 32 AM

After
Screen Shot 2023-07-22 at 8 09 29 AM

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 21, 2023
@sothawo

sothawo commented Jul 22, 2023

Copy link
Copy Markdown
Collaborator

Before creating a PR, please create an issue to discuss a problem.

What do you mean by failing tests? I know that there are uses of block() in the reactive tests, but none of these are causing tests to fail. Neither locally nor in the build pipeline

@Arooba-git

Copy link
Copy Markdown
Author

@sothawo My apologies, I just created the issue and explained the scenario there: #2645 :)

@sothawo sothawo closed this Aug 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: waiting-for-triage An issue we've not yet triaged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants