<html><body><p><font size="2" face="sans-serif">Hi Jake,</font><br><br><font size="2" face="sans-serif">Can you please look at the below WF related query.</font><br><br><br><font size="2" face="sans-serif">Regards, The Spectrum Scale (GPFS) team<br><br>------------------------------------------------------------------------------------------------------------------<br>If you feel that your question can benefit other users of &nbsp;Spectrum Scale (GPFS), then please post it to the public IBM developerWroks Forum at <a href="https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479">https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000479</a>. <br><br>If your query concerns a potential software error in Spectrum Scale (GPFS) and you have an IBM software maintenance contract please contact &nbsp;1-800-237-5511 in the United States or your local IBM Service Center in other countries. <br><br>The forum is informally monitored as time permits and should not be used for priority messages to the Spectrum Scale (GPFS) team.</font><br><br><img width="16" height="16" src="cid:1__=0ABB0286DFD8268E8f9e8a93df938690@ibm.com" border="0" alt="Inactive hide details for &quot;Hannappel, Juergen&quot; ---21-03-2022 06.09.23 PM---Hi, for a test I read from a file with dd:"><font size="2" color="#424282" face="sans-serif">&quot;Hannappel, Juergen&quot; ---21-03-2022 06.09.23 PM---Hi, for a test I read from a file with dd:</font><br><br><font size="1" color="#5F5F5F" face="sans-serif">From:        </font><font size="1" face="sans-serif">&quot;Hannappel, Juergen&quot; &lt;juergen.hannappel@desy.de&gt;</font><br><font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">&quot;gpfsug main discussion list&quot; &lt;gpfsug-discuss@spectrumscale.org&gt;</font><br><font size="1" color="#5F5F5F" face="sans-serif">Date:        </font><font size="1" face="sans-serif">21-03-2022 06.09 PM</font><br><font size="1" color="#5F5F5F" face="sans-serif">Subject:        </font><font size="1" face="sans-serif">[EXTERNAL] [gpfsug-discuss] Meaning of new fields in Watchfolder output</font><br><font size="1" color="#5F5F5F" face="sans-serif">Sent by:        </font><font size="1" face="sans-serif">&quot;gpfsug-discuss&quot; &lt;gpfsug-discuss-bounces@gpfsug.org&gt;</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><tt><font size="2">Hi,<br>for a test I read from a file with dd:<br><br>dd if=someFile bs=64k of=/dev/null<br>This will do 2 reads with 64k bytes, one read with 24053 and one final read with 0 bytes.<br><br>I now check the WF json output, looking for the new ReadOffset and bytesRead fields I get:<br> kafkacat -b my-broker -t test1-watch | while read mist; do echo $mist | python -m json.tool | grep -i read ; done <br><br> &nbsp; &quot;bytesRead&quot;: &quot;0&quot;,<br> &nbsp; &nbsp;&quot;minReadOffset&quot;: &quot;9223372036854775807&quot;,<br> &nbsp; &nbsp;&quot;maxReadOffset&quot;: &quot;0&quot;,<br>That is the open()...<br><br> &nbsp; &nbsp;&quot;bytesRead&quot;: &quot;65536&quot;,<br> &nbsp; &nbsp;&quot;minReadOffset&quot;: &quot;0&quot;,<br> &nbsp; &nbsp;&quot;maxReadOffset&quot;: &quot;65535&quot;,<br>That is the first read()....<br><br> &nbsp; &nbsp;&quot;bytesRead&quot;: &quot;131072&quot;,<br> &nbsp; &nbsp;&quot;minReadOffset&quot;: &quot;0&quot;,<br> &nbsp; &nbsp;&quot;maxReadOffset&quot;: &quot;131071&quot;,<br>WHo reads 2x64k bytes from the beginning? Is the the accumulated read data?<br><br> &nbsp; &nbsp;&quot;bytesRead&quot;: &quot;155125&quot;,<br> &nbsp; &nbsp;&quot;minReadOffset&quot;: &quot;0&quot;,<br> &nbsp; &nbsp;&quot;maxReadOffset&quot;: &quot;155124&quot;,<br>And again, now it looks as if in one event the entire file is read?<br>The documentation (</font></tt><tt><font size="2"><a href="https://www.ibm.com/docs/en/spectrum-scale/5.1.3?topic=folder-json-attributes-in-clustered-watch">https://www.ibm.com/docs/en/spectrum-scale/5.1.3?topic=folder-json-attributes-in-clustered-watch</a></font></tt><tt><font size="2">)<br>doesn't explain this....<br><br><br>-- <br>Dr. Jrgen Hannappel &nbsp;DESY/IT &nbsp; &nbsp;Tel. &nbsp;: +49 40 8998-4616<br><br>_______________________________________________<br>gpfsug-discuss mailing list<br>gpfsug-discuss at gpfsug.org<br></font></tt><tt><font size="2"><a href="http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org">http://gpfsug.org/mailman/listinfo/gpfsug-discuss_gpfsug.org</a></font></tt><tt><font size="2">&nbsp;<br></font></tt><br><br><BR>
<BR>
</body></html>