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

Reproduce timeout in mongodump 4.2

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 4.2.0
    • Component/s: mongodump
    • None

      Когда я делаю дамп базы в инструментах 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
      

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

              Created:
              Updated:
              Resolved: