Just to update the list .. <br>The problem was a programming goof-up on my part .. The files were indeed there .. but somehow ended up in the wrong domain ...<br>A few corrections .. and everything worked like magic !<br><br>
Thanks for the initiative to help though !<br><br>Dinesh.<br><br><div class="gmail_quote">On Thu, Feb 28, 2008 at 2:02 AM, dormando <<a href="mailto:dormando@rydia.net">dormando@rydia.net</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
First I've heard of this.<br>
<br>
Any chance you could send the list (or me privately) the some of the<br>
rows from your database?<br>
<br>
SELECT * FROM file WHERE fid = brokenfid;<br>
SELECT * FROM file_on WHERE fid = brokenfid;<br>
<br>
maybe what's in domain, devices tables. devices would be more important.<br>
<br>
I suspect there might be no file_on rows associated with it, or it's<br>
failing the paths test somehow.<br>
<br>
You can try fetching the key with the 'noverify=1' option set and see if<br>
it returns paths (that may not work). By default mogilefs will try a<br>
HEAD request against the storage node for each path, and filter by what<br>
paths actually work. This is even probably a better suggestion to test<br>
than sending me parts of your database.<br>
<font color="#888888"><br>
-Dormando<br>
</font><div><div></div><div class="Wj3C7c"><br>
Dinesh Gadge wrote:<br>
> Hello everybody,<br>
> I am using the ruby mogilefs-client library to interact with my mogilefs<br>
> installation.<br>
><br>
> It has happened on a few occasions that after storing a file with a<br>
> particular key, tracker does not recognize the key, and returns nil on<br>
> using<br>
><br>
> get_file_data(key)<br>
><br>
> where key is the key of that file.<br>
><br>
> This is an irreproducible [and hence an annoying :( ] problem [at least<br>
> for me].<br>
> When I checked up, the file had a correct entry in the db, with the<br>
> correct key and devids.<br>
> On checking up the /var/mogdata directory for the corresponding devices,<br>
> the file was present.<br>
><br>
> Still, it seems, the tracker is unable to find the file using that key.<br>
> I have tried it with the perl client too, even it gives an 'undef' on<br>
> asking for the file using get_file_data with the corresponding key.<br>
><br>
> I have tried 'list_keys' on both ruby and perl client .. and the result<br>
> does not have any entry for the given key.<br>
><br>
> My question is .. is this a known issue ?<br>
> or is it something I experienced randomly ? (on more-than-one occasions<br>
> though)<br>
><br>
> --<br>
> Regards,<br>
> Dinesh<br>
<br>
</div></div></blockquote></div>