[hibernate-issues] [JIRA] (HSEARCH-3865) Clean up any change to the permission of index files during tests

Yoann Rodière (JIRA) jira at hibernate.atlassian.net
Mon Mar 16 05:25:46 EDT 2020


Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3865?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 ) HSEARCH-3865 ( https://hibernate.atlassian.net/browse/HSEARCH-3865?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 ) Clean up any change to the permission of index files during tests ( https://hibernate.atlassian.net/browse/HSEARCH-3865?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 )

Issue Type: Task Assignee: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b ) Components: tests Created: 16/Mar/2020 02:25 AM Fix Versions: 6.0.0.Beta-backlog-high-priority Priority: Major Reporter: Yoann Rodière ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A58fa1ced-171a-4c00-97e8-5d70d442cc4b )

In some tests, we change the permission of some files in order to make indexing fail and to test the behavior of Hibernate Search when such failure happens.

That's neat as it allows us to simulate very low-level errors without relying on bytecode manipulation, but... it currently leaves files on the filesystem that cannot be removed with mvn clean.

We should add a cleanup to tests relying on this permission change, so as to restore original permissions after the test.

( https://hibernate.atlassian.net/browse/HSEARCH-3865#add-comment?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3865#add-comment?atlOrigin=eyJpIjoiOWI5YzIwYjY0MWZjNDc5YmE5ZWNiM2M4NzVkOWM0OTkiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100122- sha1:53b6171 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200316/c5cd48f5/attachment.html 


More information about the hibernate-issues mailing list