SmorgasbordQ (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63cb143...
) *created* an issue
Hibernate Search (
https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiMzMwZTY2...
) / Bug (
https://hibernate.atlassian.net/browse/HSEARCH-4789?atlOrigin=eyJpIjoiMzM...
) HSEARCH-4789 (
https://hibernate.atlassian.net/browse/HSEARCH-4789?atlOrigin=eyJpIjoiMzM...
) Indexing entities with a shared id across tenants results in removal from those tenants
(
https://hibernate.atlassian.net/browse/HSEARCH-4789?atlOrigin=eyJpIjoiMzM...
)
Issue Type: Bug Affects Versions: 5.11.11.Final Assignee: Unassigned Components: engine
Created: 20/Jan/2023 14:36 PM Environment: Hibernate 5.6.7, Hibernate Search
5.11.11.Final, Spring Boot 2.6.6, Windows 10, H2
(can review the pom.xml in the description) Priority: Major Reporter: SmorgasbordQ (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=63cb143...
)
https://github.com/Smorgasbordq/spring-boot-hibernate-search (
https://github.com/Smorgasbordq/spring-boot-hibernate-search )
I’ve encountered an issue where, whenever an Indexed entity has an update to its Field (or
if the hibernate enhance plugin has enableDirtyTracking=true ) then other Tenants lose
their index on that entity.
The above repo (very loosely based on the web env I work in) should demonstrate it: once
it’s running, you can access
http://localhost:9000/plant/update?tc=tenant_1 (
http://localhost:9000/plant/update?tc=tenant_1&text=fir&fields=name ) and see the
updated list of plants returned by Hibernate Search. If you access
http://localhost:9000/plant/search?tc=tenant_2&text=fir&fields=name (
http://localhost:9000/plant/search?tc=tenant_2&text=fir&fields=name ) you’ll see
no results are returned (unless you update that tenant, or trigger a reindex)
(
https://hibernate.atlassian.net/browse/HSEARCH-4789#add-comment?atlOrigin...
) Add Comment (
https://hibernate.atlassian.net/browse/HSEARCH-4789#add-comment?atlOrigin...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100214- sha1:fa7bc5f )