Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-7091

race condition while loading sample data via setup wizard

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0-beta-2
    • Fix Version/s: 2.2.0
    • Component/s: ns_server, tools
    • Security Level: Public
    • Labels:
      None

      Description

      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38769:[ns_server:debug,2012-11-04T18:32:32.847,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: "

      {'username': None, 'node': '127.0.0.1:8091', 'password': None, 'bucket': 'gamesim-sample', 'ram_quota': 100}

      ['/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin/../samples/gamesim-sample.zip']\nTraceback (most recent call last):\n File \"/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin/tools/../../lib/python/cbdocloader\", line 237, in <module>\n main()\n File \"/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin/tools/../../lib/python/cbdocloader\", line 226, in main\n docloader.init_bucket()\n File \"/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/bin/tools/../../lib/python/cbdocloader\", line 121, in init_bucket\n "
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38770:[ns_server:debug,2012-11-04T18:32:32.848,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: "authType='sasl')\n File \"/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/couchbase/rest_client.py\", line 799, in create_bucket\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38776:[ns_server:debug,2012-11-04T18:32:32.892,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " 'proxyPort': self.get_nodes_self().moxi,\n File \"/Users/farshid/Downloads/couchbase-server-community_x86_64_2.0.0-1939-rel/Couchbase Server.app/Contents/Resources/couchbase-core/lib/python/couchbase/rest_client.py\", line 591, in get_nodes_self\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38777:[ns_server:debug,2012-11-04T18:32:32.893,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " json_parsed = json.loads(content)\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/_init_.py\", line 326, in loads\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38778:[ns_server:debug,2012-11-04T18:32:32.893,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " return _default_decoder.decode(s)\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38779:[ns_server:debug,2012-11-04T18:32:32.893,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 366, in decode\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38780:[ns_server:debug,2012-11-04T18:32:32.894,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/json/decoder.py\", line 384, in raw_decode\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38781:[ns_server:debug,2012-11-04T18:32:32.894,ns_1@127.0.0.1:<0.1038.0>:samples_loader_tasks:wait_for_exit:101]output from gamesim-sample: " raise ValueError(\"No JSON object could be decoded\")\nValueError: No JSON object could be decoded\n"
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38782:[ns_server:debug,2012-11-04T18:32:32.904,ns_1@127.0.0.1:samples_loader_tasks<0.1025.0>:samples_loader_tasks:handle_info:58]Consumed exit signal from samples loading task gamesim-sample: {'EXIT',
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38786:[user:error,2012-11-04T18:32:32.905,ns_1@127.0.0.1:samples_loader_tasks<0.1025.0>:samples_loader_tasks:handle_info:64]Loading sample bucket gamesim-sample failed: {failed_to_load_samples_with_status,
      /Users/farshid/Downloads/ns-diag-20121104183310.txt:38788:[ns_server:debug,2012-11-04T18:32:32.906,ns_1@127.0.0.1:samples_loader_tasks<0.1025.0>:samples_loader_tasks:handle_info:68]Token holder died

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Discussed with Bin and Steve. We'll take care of this by either:

        • creating buckets synchronously and delaying actual docloading after wizard is done
        • waiting for docloader jobs before advancing to next wizard step
        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Discussed with Bin and Steve. We'll take care of this by either: creating buckets synchronously and delaying actual docloading after wizard is done waiting for docloader jobs before advancing to next wizard step
        Hide
        artem Artem Stemkovski added a comment -

        sample buckets creation and docloading are deferred till the end of the wizard

        Show
        artem Artem Stemkovski added a comment - sample buckets creation and docloading are deferred till the end of the wizard
        Hide
        artem Artem Stemkovski added a comment -

        fixed in 2.1.1 aka 2.2.0
        in the following commit: MB-7720: deferred creation of the sample and default buckets

        Show
        artem Artem Stemkovski added a comment - fixed in 2.1.1 aka 2.2.0 in the following commit: MB-7720 : deferred creation of the sample and default buckets
        Hide
        thuan Thuan Nguyen added a comment -

        Tested on build 2.2.0-821 (RC3).
        I could not repro on both cases: before and after initial setup couchbase server.
        I also tested on SSD and regular disk

        Show
        thuan Thuan Nguyen added a comment - Tested on build 2.2.0-821 (RC3). I could not repro on both cases: before and after initial setup couchbase server. I also tested on SSD and regular disk
        Hide
        thuan Thuan Nguyen added a comment -

        Tested on mac with OSX version 10.7.5

        Show
        thuan Thuan Nguyen added a comment - Tested on mac with OSX version 10.7.5

          People

          • Assignee:
            thuan Thuan Nguyen
            Reporter:
            farshid Farshid Ghods (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes