[Buildbot-commits] [Buildbot] #1963: FileUpload creates truncated file when buildslave is not on localhost

Buildbot nobody at buildbot.net
Wed Jun 29 05:38:36 UTC 2011


#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


More information about the Commits mailing list