-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: FSSlaveDirectoryProvider AccessDeniedException
PostPosted: Wed Apr 19, 2017 5:58 am 
Newbie

Joined: Wed Apr 19, 2017 4:36 am
Posts: 2
At hibernate search JMS cluster setup.

Anyone have an idea what is causing FSSlaveDirectoryProvider to fail with AccessDeniedException?
How to track this down?

2017-04-19 10:04:43,557 TRACE [org.hibernate.search.store.impl.FSSlaveDirectoryProvider] (pool-18-thread-1) Copying \var\trans\tptjlev\lucene\Local_1\source\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildning\1 into \var\trans\tptjlev\lucene\Local_2\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildning\2
2017-04-19 10:04:43,572 TRACE [org.hibernate.search.store.impl.FSSlaveDirectoryProvider] (pool-18-thread-1) Copy for C:\var\trans\tptjlev\lucene\Local_2\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildning took 15 ms
2017-04-19 10:04:43,942 TRACE [org.hibernate.search.store.impl.FSSlaveDirectoryProvider] (pool-19-thread-1) Copying \var\trans\tptjlev\lucene\Local_1\source\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildningstillfalle\1 into \var\trans\tptjlev\lucene\Local_2\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildningstillfalle\2
2017-04-19 10:04:43,944 ERROR [org.hibernate.search.store.impl.FSSlaveDirectoryProvider] (pool-19-thread-1) HSEARCH000021: Unable to synchronize source of C:\var\trans\tptjlev\lucene\Local_2\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildningstillfalle: java.nio.file.AccessDeniedException: \var\trans\tptjlev\lucene\Local_2\index\se.arbetsformedlingen.tjansteleverantor.datalager.doman.entiteter.DUtbildningstillfalle\2\_8.cfs
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) [rt.jar:1.8.0_45]
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) [rt.jar:1.8.0_45]
at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) [rt.jar:1.8.0_45]
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) [rt.jar:1.8.0_45]
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source) [rt.jar:1.8.0_45]
at java.nio.file.Files.delete(Unknown Source) [rt.jar:1.8.0_45]
at org.hibernate.search.util.impl.FileHelper$1.visitFile(FileHelper.java:204) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at org.hibernate.search.util.impl.FileHelper$1.visitFile(FileHelper.java:201) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at java.nio.file.Files.walkFileTree(Unknown Source) [rt.jar:1.8.0_45]
at java.nio.file.Files.walkFileTree(Unknown Source) [rt.jar:1.8.0_45]
at org.hibernate.search.util.impl.FileHelper.delete(FileHelper.java:201) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at org.hibernate.search.util.impl.FileHelper.delete(FileHelper.java:182) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at org.hibernate.search.util.impl.FileHelper.synchronize(FileHelper.java:115) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at org.hibernate.search.store.impl.FSSlaveDirectoryProvider$CopyDirectory.run(FSSlaveDirectoryProvider.java:353) [hibernate-search-engine-5.5.0.Final.jar:5.5.0.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [rt.jar:1.8.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.8.0_45]
at java.lang.Thread.run(Unknown Source) [rt.jar:1.8.0_45]

File copy works a couple of times, in response to a master index update, then suddenly fails and keep on failing on the slaves.
It seems like hibernate is already locking the file when trying to do file copy.

Setup is;
Spring 4.3.4 on wildfly 8.
hibernate search 5.5.5
hibernate-core 5.1.1
Java 1.8
Windows 7

Configuration like JMS setup in https://docs.jboss.org/hibernate/search ... ms-backend
Ejb MDB at master node. Spring entityManagerFactory configures hibernate search.
3 nodes, refresh 2 min.


Top
 Profile  
 
 Post subject: Re: FSSlaveDirectoryProvider AccessDeniedException
PostPosted: Thu Apr 20, 2017 7:07 am 
Newbie

Joined: Wed Apr 19, 2017 4:36 am
Posts: 2
Problem was solved by changing default reader strategy from 'shared' to 'not-shared'


Top
 Profile  
 
 Post subject: Re: FSSlaveDirectoryProvider AccessDeniedException
PostPosted: Fri Apr 21, 2017 5:07 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Thanks for reporting that: looking at the code I see it's not handling the Windows-style locking (we test mostly on other systems).

I've opened https://hibernate.atlassian.net/browse/HSEARCH-2690 and will fix it soon.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.