I forgot to cc the list.&nbsp; Sorry for the duplicate, Junior.<br><br>---------- Forwarded message ----------<br><span class="gmail_quote">From: <b class="gmail_sendername">Drop Box</b> &lt;<a href="mailto:publicdropbox@gmail.com">
publicdropbox@gmail.com</a>&gt;<br>Date: Feb 16, 2006 1:13 PM<br>Subject: Re: buggy tracker behavior?<br>To: Mark Smith &lt;<a href="mailto:junior@danga.com">junior@danga.com</a>&gt;<br><br></span>Junior,<br><br>That was helpful, thanks.&nbsp; The idea that the tracker will only verify one path (in the absence of noverify) but return two paths seems unintuitive/misleading.&nbsp; After all, the returned array is not an array full of verified paths.&nbsp; At the same time, I can see how you wouldn't want to take the time to verify two paths.&nbsp; I don't have a thought-out proposal for how I think it should be different, though, so I won't press the issue.
<br><br>I'm using the (mostly complete but then apparently dropped) PHP client written by the wikipedia folks, and the problem was that the first element in the (associative) array of paths was path2 (I assume because path2 is always returned first in the by the tracker, despite the fact that it hasn't been verified), and it just did a &quot;foreach @paths&quot; sort of thing.&nbsp; Alphabetizing the array puts path1 first and made things a little better.&nbsp; There's still a lot of slowness associated with having to verify the path about half the time (with 1 of 2 hosts down) on pages with 30+ pieces of content.&nbsp; Using &quot;mogilefsd --node_timeout 1&quot;
didn't seem to speed things up as I had expected, either, but my expectations could very well be off too.<br><br>If I recall correctly, there was talk of automatically marking systems or devices as down in the database.&nbsp; Has there been any progress on that?&nbsp; If not, is that something that should be done under job_monitor() in mogilefsd?
<br><br>Thanks.<div><span class="e" id="q_10974b5da1de3430_1"><br><br><div><span class="gmail_quote">On 2/13/06, <b class="gmail_sendername">Mark Smith</b> &lt;<a href="mailto:junior@danga.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
junior@danga.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
The 'verify' option (or rather, the lack of the noverify option) only<br>looks for one valid path.&nbsp;&nbsp;Additionally, it randomizes based on the weights<br>of the devices.&nbsp;&nbsp;So you end up with one of two scenarios: it tries the good
<br>device first, or it tries the bad one first.<br><br>If it tries the good one, it says &quot;hey, got a good device!&quot; and it returns<br>both paths.&nbsp;&nbsp;(No need to check the other one -- we've already verified one<br>


of them!)&nbsp;&nbsp;If it hits the bad one, then it has to throw it out, and then<br>return the other one.<br><br>If you notice from your output, the ONLY time you see both is when the<br>&quot;good&quot; device is listed as &quot;path1&quot; -- the first device it checked, and the
<br>one that came out okay.<br><br>So no, not a bug.&nbsp;&nbsp;Hope that makes sense.&nbsp;&nbsp;:-)<br><br><br>-jr<br><br>On Thu, Feb 09, 2006, Drop Box wrote:<br>&gt; Hi,<br>&gt;<br>&gt; I'm testing out MogileFS and am getting some results from the tracker that I
<br>&gt; didn't expect.&nbsp;&nbsp;I'm wondering whether it's a bug or a misunderstanding on my<br>&gt; part.&nbsp;&nbsp;I have a file saved to two devices on two different systems.&nbsp;&nbsp;I<br>&gt; unplugged one of the systems/devices (dev1 on .22) from the network and
<br>&gt; noticed that the tracker will sometimes respond to GET_PATHS with 2 paths,<br>&gt; for some reason:<br>&gt;<br>&gt; $ telnet localhost 7001<br>&gt; Trying 127.0.0.1...<br>&gt; Connected to localhost (<a href="http://127.0.0.1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


127.0.0.1</a>).<br>&gt; Escape character is '^]'.<br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path2=<a href="http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path1= <a href="http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path2=<a href="http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path1= <a href="http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path2=<a href="http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path1= <a href="http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">


http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path1= <a href="http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1
</a><br>&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path1=<a href="http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=1</a><br>
&gt; GET_PATHS domain=test&amp;key=thisismykey<br>&gt; OK path2=<a href="http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">

http://192.168.0.22:7500/dev1/0/000/000/0000000054.fid&amp;path1=http://192.168.0.23:7500/dev2/0/000/000/0000000054.fid&amp;paths=2
</a><br>&gt;<br>&gt;<br>&gt; I would have guessed that GET_PATHS would only return the 1 available path,<br>&gt; given that I'm not setting noverify.&nbsp;&nbsp;Whether or not that's how it's<br>&gt; supposed to work (could someone verify whether my guess is correct,
<br>&gt; though?), my knee-jerk reaction to the sporadic behavior is to think there's<br>&gt; something wrong.&nbsp;&nbsp;Thoughts?<br>&gt;<br>&gt; I'm using the latest revision from CVS, btw.<br>&gt;<br>&gt; Thanks.<br><br><br>--
<br>
Junior (aka Mark Smith)<br><a href="mailto:junior@danga.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">junior@danga.com</a><br><br>Software Engineer<br>Six Apart / Danga Interactive<br></blockquote>

</div><br>


</span></div>