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

Spatial index cleanup leads to bad match

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-beta
    • 2.0-beta
    • view-engine
    • Security Level: Public
    • None
    • 2

    Description

      Here's an expert from the log (thanks Filipe)

      [ns_server:error] [2012-06-26 15:34:14] [n_0@127.0.0.1:<0.4254.0>:compaction_daemon:try_to_cleanup_indexes:399] Error while doing cleanup of old spatial index files for bucket `default`: {exit,
      {{badarg,
      [{erlang,
      binary_to_list,
      [{db,
      <0.3661.0>,
      <0.3662.0>,
      nil,
      <<"1340721224965520">>,
      <0.3658.0>,
      <0.3663.0>,

      {db_header, 10, 1, <<0,0,0,0, 0,158,0, 0,0,0,0, 70,0,0, 0,0,1,0, 0,0,0,0, 0,0,0,0, 0,124>>, <<0,0,0,0, 0,228,0, 0,0,0,0, 68,0,0, 0,0,1>>, nil, 0, nil, nil}

      ,
      1,
      {btree,
      <0.3658.0>,

      {158, <<0,0,0,0, 1,0,0,0, 0,0,0,0, 0,0,0, 124>>, 70}

      ,
      #Fun<couch_db_updater.7.38096787>,
      #Fun<couch_db_updater.8.38096787>,
      #Fun<couch_btree.5.88636510>,
      #Fun<couch_db_updater.9.38096787>,
      1279,
      true},
      {btree,
      <0.3658.0>,

      {228, <<0,0,0,0, 1>>, 68}

      ,
      #Fun<couch_db_updater.10.38096787>,
      #Fun<couch_db_updater.11.38096787>,
      #Fun<couch_db_updater.6.38096787>,
      #Fun<couch_db_updater.12.38096787>,
      1279,
      true},

      {btree, <0.3658.0>, nil, #Fun<couch_btree.3.88636510>, #Fun<couch_btree.4.88636510>, #Fun<couch_btree.5.88636510>, nil, 1279, true}

      ,
      1,
      <<"default/master">>,
      "/Users/fdmanana/couchbase2-4/ns_server/couch/0/default/master.couch.1",
      [],
      nil,

      {user_ctx, null, [], undefined}

      ,
      nil,
      [before_header,
      after_header,
      on_file_open],
      []}],
      []},
      {couch_server,
      open_db,
      4,
      [

      {file, "couch_server.erl"}

      ,

      {line, 449}

      ]},
      {gen_server,
      handle_msg,
      5,
      [

      {file, "gen_server.erl"}

      ,

      {line, 588}

      ]},
      {proc_lib,
      init_p_do_apply,
      3,
      [

      {file, "proc_lib.erl"}

      ,

      {line, 227}

      ]}]},
      {gen_server,
      call,
      [couch_server,
      {open,
      {db,
      <0.3661.0>,
      <0.3662.0>,
      nil,
      <<"1340721224965520">>,
      <0.3658.0>,
      <0.3663.0>,

      {db_header, 10, 1, <<0,0,0,0, 0,158,0, 0,0,0,0, 70,0,0, 0,0,1,0, 0,0,0,0, 0,0,0,0, 0,124>>, <<0,0,0,0, 0,228,0, 0,0,0,0, 68,0,0, 0,0,1>>, nil, 0, nil, nil}

      ,
      1,
      {btree,
      <0.3658.0>,

      {158, <<0,0,0,0, 1,0,0,0, 0,0,0,0, 0,0,0, 124>>, 70}

      ,
      #Fun<couch_db_updater.7.38096787>,
      #Fun<couch_db_updater.8.38096787>,
      #Fun<couch_btree.5.88636510>,
      #Fun<couch_db_updater.9.38096787>,
      1279,
      true},
      {btree,
      <0.3658.0>,

      {228, <<0,0,0,0, 1>>, 68}

      ,
      #Fun<couch_db_updater.10.38096787>,
      #Fun<couch_db_updater.11.38096787>,
      #Fun<couch_db_updater.6.38096787>,
      #Fun<couch_db_updater.12.38096787>,
      1279,
      true},

      {btree, <0.3658.0>, nil, #Fun<couch_btree.3.88636510>, #Fun<couch_btree.4.88636510>, #Fun<couch_btree.5.88636510>, nil, 1279, true}

      ,
      1,
      <<"default/master">>,
      "/Users/fdmanana/couchbase2-4/ns_server/couch/0/default/master.couch.1",
      [],
      nil,

      {user_ctx, null, [], undefined}

      ,
      nil,
      [before_header,
      after_header,
      on_file_open],
      []},
      []},
      infinity]}}}
      [{gen_server,call,3,[

      {file,"gen_server.erl"}

      ,

      {line,188}

      ]},
      {couch_server,open,2,[

      {file,"couch_server.erl"}

      ,

      {line,55}

      ]},
      {couch_spatial_group,open_db_group,2,
      [

      {file,"src/geocouch/couch_spatial_group.erl"}

      ,

      {line,342}

      ]},
      {couch_spatial,open_db_group,2,
      [

      {file,"src/geocouch/couch_spatial.erl"},{line,77}]},
      {couch_spatial,get_group_server,2,
      [{file,"src/geocouch/couch_spatial.erl"}

      ,

      {line,66}

      ]},
      {couch_spatial,get_group_info,2,
      [

      {file,"src/geocouch/couch_spatial.erl"}

      ,

      {line,118}

      ]},
      {capi_spatial,'get_signatures/1-fun-0',2,
      [

      {file,"src/capi_spatial.erl"}

      ,

      {line,186}

      ]},
      {lists,map,2,[

      {file,"lists.erl"}

      ,

      {line,1173}

      ]}]

      Attachments

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

        Activity

          People

            vmx Volker Mische
            vmx Volker Mische
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty