+
Skip to content

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载