Bug 443916 - rsync timeout while trying to receive a big file
Summary: rsync timeout while trying to receive a big file
Keywords:
Status: CLOSED DUPLICATE of bug 456275
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: rsync
Version: 4.6
Hardware: s390x
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Simo Sorce
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 456275
TreeView+ depends on / blocked
 
Reported: 2008-04-24 04:51 UTC by Qian Cai
Modified: 2008-09-02 10:13 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-09-02 10:13:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
strace of failed attempt to receive a 2M file (14.94 KB, text/plain)
2008-04-24 04:51 UTC, Qian Cai
no flags Details
strace of successful attempt to receive a 1M file (16.10 KB, text/plain)
2008-04-24 04:52 UTC, Qian Cai
no flags Details

Description Qian Cai 2008-04-24 04:51:59 UTC
Description of problem:
On both s390 and s390x, rsync can hung while trying to receive a big file (2M
bytes). However, it works fine if the file size is a little bit smaller (1M).

[root@z206 ~]# rsync -vrltS -z rsync://z207.z900.redhat.com/lands ./
receiving file list ... done
./

From strace I could see it got timeout here,

lstat64("big", 0x7fffb6a0)              = -1 ENOENT (No such file or directory)
select(4, NULL, [3], NULL, {60, 0})     = 1 (out [3], left {60, 0})
write(3, "\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\377\377\377\377", 24) = 24
select(5, [4], [], NULL, {60, 0})       = 0 (Timeout)
select(5, [4], [], NULL, {60, 0})       = 0 (Timeout)
select(5, [4], [], NULL, {60, 0})       = 0 (Timeout)
select(5, [4], [], NULL, {60, 0})       = 0 (Timeout)

Version-Release number of selected component (if applicable):
RHEL4U6
rsync-2.6.3-1

How reproducible:
Very often.

Steps to Reproduce:
1. configure rsync server (For example, z207.z900.redhat.com), /etc/rsyncd,

  [lands]
      comment = LandS rsync Server
      path = /var/www/html/lands_rsync
      read only = yes
      list = yes
      uid = nobody
      gid = nobody

mkdir /var/www/html/lands_rsync
cd /var/www/html/lands_rsync

# Generate a file 2M in size.
dd if=/dev/zero of=big bs=1M count=2

chown -R nobody:nobody /var/www/html/lands_rsync
/sbin/chkconfig rsync on

2. run the following command in a s390(x) client,
rsync -vrltS -z rsync://z207.z900.redhat.com/lands ./

Comment 1 Qian Cai 2008-04-24 04:51:59 UTC
Created attachment 303575 [details]
strace of failed attempt to receive a 2M file

Comment 2 Qian Cai 2008-04-24 04:52:47 UTC
Created attachment 303576 [details]
strace of successful attempt to receive a 1M file

Comment 3 Qian Cai 2008-09-02 10:13:29 UTC

*** This bug has been marked as a duplicate of bug 456275 ***


Note You need to log in before you can comment on or make changes to this bug.