[ARVADOS] created: 59fff3b5a05f555890d9b0d880913c42853ce064

Git user git at public.curoverse.com
Fri Dec 30 15:48:28 EST 2016


        at  59fff3b5a05f555890d9b0d880913c42853ce064 (commit)


commit 59fff3b5a05f555890d9b0d880913c42853ce064
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Fri Dec 30 15:48:23 2016 -0500

    10790: Increase timeout reading from arv-put and enable debugging.

diff --git a/sdk/cli/bin/crunch-job b/sdk/cli/bin/crunch-job
index 40c9cf3..1df44ab 100755
--- a/sdk/cli/bin/crunch-job
+++ b/sdk/cli/bin/crunch-job
@@ -1743,12 +1743,14 @@ my ($log_pipe_in, $log_pipe_out, $log_pipe_out_buf, $log_pipe_out_select,
 sub log_writer_start($)
 {
   my $logfilename = shift;
+  $ENV{ARVADOS_DEBUG} = "1";
   $log_pipe_pid = open2($log_pipe_out, $log_pipe_in,
                         'arv-put',
                         '--stream',
                         '--retries', '3',
                         '--filename', $logfilename,
                         '-');
+  delete $ENV{ARVADOS_DEBUG};
   $log_pipe_out_buf = "";
   $log_pipe_out_select = IO::Select->new($log_pipe_out);
 }
@@ -1780,7 +1782,7 @@ sub log_writer_finish()
   close($log_pipe_in);
 
   my $logger_failed = 0;
-  my $read_result = log_writer_read_output(120);
+  my $read_result = log_writer_read_output(600);
   if ($read_result == -1) {
     $logger_failed = -1;
     Log (undef, "timed out reading from 'arv-put'");

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list