Skip to content

IBX-9845: Added test skipping for Solr doesn't support shard URL #593

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

Merged
merged 3 commits into from
Jul 3, 2025

Conversation

mikadamczyk
Copy link
Contributor

@mikadamczyk mikadamczyk commented Jun 11, 2025

🎫 Issue IBX-9845

Related PRs:

Description:

This PR updates the SearchServiceTranslationLanguageFallbackTest integration test to address a breaking change introduced in Solr 9.3.0 (SOLR-9378), where the shard.url parameter is no longer sent in shard requests.

In Solr 9.3.0+, it is no longer possible to check the shard name via the response, as the shard.url is not available ("not a shard request" is returned). The assertIndexName() test assertion now only runs for Solr versions before 9.3.0. For Solr 9.3.0 and above, the assertion is skipped to avoid false negatives.

Impact of the new search_field sort clause:

Previously, test expectations around which search hit appeared at which index were based on results ordered solely by a single sort field. That ordering meant, for example, content A always showed at position 3 under a shared setup. Content should also be ordered by a secondary field, specifically "search_field". That's why searchHitIndex needs to be adjusted.

For QA:

Documentation:

@mikadamczyk mikadamczyk marked this pull request as ready for review June 24, 2025 06:03
Copy link
Member

Choose a reason for hiding this comment

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

What concerns me here is execution permissions (0755) added to this file for no reason
image
It doesn't look like any other test has that set:
image

Copy link
Member

Choose a reason for hiding this comment

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

I don't think it's intentional change 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

Copy link

sonarqubecloud bot commented Jul 3, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
35.7% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@adamwojs adamwojs merged commit 792307c into 4.6 Jul 3, 2025
23 of 24 checks passed
@adamwojs adamwojs deleted the solr-9-update branch July 3, 2025 12:17
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.

4 participants