#1963: FileUpload creates truncated file when buildslave is not on localhost
---------------------+--------------------
Reporter:  landry    |       Owner:
    Type:  defect    |      Status:  new
Priority:  major     |   Milestone:  0.8.+
 Version:  0.8.3p1   |  Resolution:
Keywords:  transfer  |
---------------------+--------------------

Comment (by landry):

 Yes... interestingly, since i added the debug print of the file size, it
 works. ie in _writeBlock :
 {{{
         if self.debug:
             # log.msg('file size is %d' %
 os.fstat(self.fp.fileno())[ST_SIZE])
             log.msg('SlaveFileUploadCommand._writeBlock(): '+
                     'allowed=%d readlen=%d' % (length, len(data)))
 }}}

 In the log, i'm getting :
 {{{
 2011-06-29 07:27:48+0200 [-] file size is 14319421
 2011-06-29 07:27:48+0200 [-] SlaveFileUploadCommand._writeBlock():
 allowed=16384 readlen=16384
 2011-06-29 07:27:48+0200 [Broker,client] file size is 14319421
 2011-06-29 07:27:48+0200 [Broker,client]
 SlaveFileUploadCommand._writeBlock(): allowed=16384 readlen=16384
 2011-06-29 07:27:48+0200 [Broker,client] file size is 14319421
 }}}

 I've removed the debug printf  and will see tomorrow if it failed again...
 which would be 'interesting'.

-- 
Ticket URL: <http://trac.buildbot.net/ticket/1963#comment:10>
Buildbot <http://buildbot.net/>
Buildbot: build/test automation
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
Buildbot-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/buildbot-commits

Reply via email to