Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-6167

endless loop in lustre_rsync

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.7.0
    • Lustre 2.5.3
    • CentOS
    • 3
    • 17260

    Description

      When test lustre_rsync combined with racer, some strange behavior come out.
      1. follw is the test case i use:

      1. Test 13 - lustre_rsync, use racer test suite
        test_13() {
        init_src
        init_changelog

      local rrc=0
      local rc=0
      local clients=$CLIENTS
      local RDIRS
      local i

      1. 1. init racer directories
        for d in ${RACERDIRS}; do
        is_mounted $d || continue

      RDIRS="$RDIRS $d/racer"
      mkdir -p $d/racer

      1. lfs setstripe $d/racer -c -1
        if [ $MDSCOUNT -ge 2 ]; then
        for i in $(seq $((MDSCOUNT - 1))); do
        RDIRS="$RDIRS $d/racer$i"
        if [ ! -e $d/racer$i ]; then
        $LFS mkdir -i $i $d/racer$i ||
        error "lfs mkdir $i failed"
        fi
        done
        fi
        done
      1. 2. racer start
        local rpids=""
        for rdir in $RDIRS; do
        do_nodes $clients "DURATION=$DURATION MDSCOUNT=$MDSCOUNT \
        $racer $rdir $NUM_RACER_THREADS" &
        pid=$!
        rpids="$rpids $pid"
        done
        for pid in $rpids; do
        wait $pid
        rc=$?
        echo "pid=$pid rc=$rc"
        if [ $rc != 0 ]; then
        rrc=$((rrc + 1))
        fi
        done
      2. 8. Replicate the changes to $TGT and TGT2
        $LRSYNC -s $DIR -t $TGT -t $TGT2 -m $MDT0 -u $CL_USER -l $LREPL_LOG \
        -D $LRSYNC_LOG $EXTRA_FLAGS
      1. 9. check difference
        check_diff $DIR $TGT
        check_diff $DIR $TGT2
        echo "check difference on target dir"
        sleep 120
        fini_changelog
        cleanup_src_tgt
        return 0
        }
        run_test 13 "lustre_rsync, use racer test suite"
        It will cause lustre_rsync run in a endless loop, and never come out.

      Attachments

        Activity

          People

            ys Yang Sheng
            gnlwlb wu libin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: