<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  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  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 "Hannappel, Juergen" ---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">"Hannappel, Juergen" ---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">"Hannappel, Juergen" <juergen.hannappel@desy.de></font><br><font size="1" color="#5F5F5F" face="sans-serif">To:        </font><font size="1" face="sans-serif">"gpfsug main discussion list" <gpfsug-discuss@spectrumscale.org></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">"gpfsug-discuss" <gpfsug-discuss-bounces@gpfsug.org></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>   "bytesRead": "0",<br>    "minReadOffset": "9223372036854775807",<br>    "maxReadOffset": "0",<br>That is the open()...<br><br>    "bytesRead": "65536",<br>    "minReadOffset": "0",<br>    "maxReadOffset": "65535",<br>That is the first read()....<br><br>    "bytesRead": "131072",<br>    "minReadOffset": "0",<br>    "maxReadOffset": "131071",<br>WHo reads 2x64k bytes from the beginning? Is the the accumulated read data?<br><br>    "bytesRead": "155125",<br>    "minReadOffset": "0",<br>    "maxReadOffset": "155124",<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. Jürgen Hannappel  DESY/IT    Tel.  : +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"> <br></font></tt><br><br><BR>
<BR>
</body></html>