-->
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: "Unable to determine current in source directory" always
PostPosted: Wed Nov 25, 2009 4:53 pm 
Regular
Regular

Joined: Fri Oct 05, 2007 3:22 am
Posts: 69
I continuously encounter this no mater what I do running Hibernate Search in a clustered configuration.
There is no getting rid of it which messes up search.

Is anyone else using Hibernate Search in a clustered configuration based on the recommended approach? If so do you encounter this?

I think the default shipped slavedirectoryprovider has some potential issues with how they deal with markers?

Code:
private File determineCurrentSourceFile() {
            File sourceFile = null;
            if (new File(source, "current1").exists()) {
                sourceFile = new File(source, "1");
            } else if (new File(source, "current2").exists()) {
                sourceFile = new File(source, "2");
            }
            return sourceFile;
        }


Why are FileLocks not used? Here we are just hoping we don't encounter a race condition which is entirely possible.

Now, on a rare occasion I may see "Unable to determine current in source directory" but always?

The error is occurring in a production environment and this server is not directly accessible making it difficult to debug.


Top
 Profile  
 
 Post subject: Re: "Unable to determine current in source directory" always
PostPosted: Thu Nov 26, 2009 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Quote:
Is anyone else using Hibernate Search in a clustered configuration based on the recommended approach?

Yes, twice installed myself on moderate load, and heard of several big deployments.
Quote:
If so do you encounter this?

Never seen before.. might have been a different version?

Quote:
Why are FileLocks not used? Here we are just hoping we don't encounter a race condition which is entirely possible.

right it's not looking very well, but it's impossible in practice for a race condition to happen as the switching of current directory is single threaded and is the same thread which is performing this check.

Sounds more like there's some mistake in configuration? It's quite confusing about which one is the target, look out for which configuration is relevant for the master and which one for the slave.
Especially because of the single-threaded design mentioned above, if you're seeing race conditions it's likely the other node is messing a Directory it shouldn't touch.

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


Top
 Profile  
 
 Post subject: Re: "Unable to determine current in source directory" always
PostPosted: Fri Nov 27, 2009 10:41 am 
Pro
Pro

Joined: Wed Oct 03, 2007 2:31 pm
Posts: 205
Hi

We did a whole bunch of load tests using master slave configuration and we did not experience any issues. I remember when i started on Hibernate search i came across this problem ( i can't remember what i did to get it to work ..not much help) but it was something related to my configuration. Is it possible to get a snippet of your slave config and master config?

It may be worth some updates to the online documentation in relation to the file setup as the Hibernate Search in Action covers this very well.

Haven't helped much but it's worth definitely considering Sanne's last statement.


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.