Uploaded image for project: 'MongoDB ETL Tools'
  1. MongoDB ETL Tools
  2. TOOLS-2353

Reproduce timeout in mongodump 4.2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: 4.2.0
    • Fix Version/s: None
    • Component/s: mongodump
    • Labels:
      None
    • Case:

      Description

      Когда я делаю дамп базы в инструментах mongodump 4.2

       

      mongodump version: r4.2.0-40-gd622dc9
      git version: d622dc9a28c6abf602432d34af64f87887407caf
      Go version: go1.12.4
       os: linux
       arch: amd64
       compiler: gc

       

      я получаю ошибку:

      2019-08-21T10:08:01.527+0300 Failed: error creating intents to dump: error counting [DATABASE].[COLLECTION]: connection([HOST]:27017[-5]) unable to decode message length: read tcp 127.0.0.1:60088->127.0.0.1:27017: i/o timeout
      

      С инструментами mongodump 4.0 (Он ведь вообще не должен работать с "featureCompatibilityVersion" : { "version" : "4.2" } ? Тем не менее работает.)

       

      mongodump version: r4.0.10-9-g9ca4b77
      git version: 9ca4b77385c3c92e545739290b2c5c2e2de8208c
      Go version: go1.11.9
       os: linux
       arch: amd64
       compiler: gc
      OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
      

      такой проблемы нет.

      Моя конфигурация:

      Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-135-generic x86_64)

      # mongod --version
      db version v4.2.0-40-gd622dc9
      git version: d622dc9a28c6abf602432d34af64f87887407caf
      OpenSSL version: OpenSSL 1.0.2g  1 Mar 2016
      allocator: tcmalloc
      modules: none
      build environment:
          distmod: ubuntu1604
          distarch: x86_64
          target_arch: x86_64
      
      

       "featureCompatibilityVersion" : { "version" : "4.2" }
      

      Кластер из 2 осколков и арбитра.

      Команда для дампа тривиальна:

      mongodump --uri="mongodb://[LOGIN]:[PASSWORD]@[HOST1]:27017,[HOST2]:28017,[HOST3]:27217/[DATABASE]?replicaSet=farmin&readPreference=secondary" --gzip --archive=/farmin/backup/iRetail_backup.tar.gz
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                david.golden David Golden
                Reporter:
                slavianich@gmail.com Siarhei Dudko
              • Votes:
                2 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: