Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: storage-engine
    • Security Level: Public
    • Labels:
      None

      Description

      As part of looking at MB-7824 I've found evidence of repeated compactor crashes.

      Logs are available there.

      Here's excerpt:

      [couchdb:info,2013-02-26T14:07:27.985,ns_1@10.6.2.68:<0.5221.0>:couch_log:info:39]Starting compaction for db "MsgsCalls/4", options: []
      [couchdb:info,2013-02-26T14:07:28.071,ns_1@10.6.2.68:<0.27758.32>:couch_log:info:39]Native compactor output: Compacted /data/MsgsCalls/4.couch.74 -> /data/MsgsCalls/4.couch.74.compact
      [couchdb:error,2013-02-26T14:07:29.685,ns_1@10.6.2.68:<0.27758.32>:couch_log:error:42]Native compact for "MsgsCalls/4" failed due to error {error,{badmatch,{unexpected_binary,

      {at,495618}

      ,

      {wanted_bytes,2003549077}

      ,{got,7893081,<<100,118,114,111,122,104,105,111,115,105,99,100,115
      [couchdb:info,2013-02-26T14:07:50.592,ns_1@10.6.2.68:<0.5221.0>:couch_log:info:39]Database `MsgsCalls/4` compactor died with reason: {{case_clause,
      {file_already_opened,
      "/data/MsgsCalls/4.couch.74.compact"}},
      [

      {couch_db_updater, make_target_db,2}

      ,

      {couch_db_updater, start_copy_compact,2}

      ]}

      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 -

        BTW, another node (.89) is having exactly same problem, just with different vbucket. And Abhinav mentioned that he did purge compaction. Which may be related or not.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - BTW, another node (.89) is having exactly same problem, just with different vbucket. And Abhinav mentioned that he did purge compaction. Which may be related or not.
        Hide
        aaron Aaron Miller (Inactive) added a comment -

        Purge compaction is definitely related. Tracked this down. This will always happen on the second compaction after purge compact runs. http://review.couchbase.org/#/c/24885/ Fix here!

        Show
        aaron Aaron Miller (Inactive) added a comment - Purge compaction is definitely related. Tracked this down. This will always happen on the second compaction after purge compact runs. http://review.couchbase.org/#/c/24885/ Fix here!
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        2.0.1 build # 170 has this fix

        Show
        farshid Farshid Ghods (Inactive) added a comment - 2.0.1 build # 170 has this fix
        Hide
        thuan Thuan Nguyen added a comment -

        Integrated in github-couchdb-preview #567 (See http://qa.hq.northscale.net/job/github-couchdb-preview/567/)
        MB-7828 Don't attempt to copy purged docs list (Revision 835243709a1d51e795d3c73fbdf451db98a20bb1)

        Result = SUCCESS
        Damien Katz :
        Files :

        • src/couchdb/couch_db_updater.erl
        • src/couchdb/couch_view_updater.erl
        Show
        thuan Thuan Nguyen added a comment - Integrated in github-couchdb-preview #567 (See http://qa.hq.northscale.net/job/github-couchdb-preview/567/ ) MB-7828 Don't attempt to copy purged docs list (Revision 835243709a1d51e795d3c73fbdf451db98a20bb1) Result = SUCCESS Damien Katz : Files : src/couchdb/couch_db_updater.erl src/couchdb/couch_view_updater.erl

          People

          • Assignee:
            aaron Aaron Miller (Inactive)
            Reporter:
            alkondratenko Aleksey Kondratenko (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes