Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-1196

The server cannot terminate properly closing all the databases

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2
    • 1.2
    • Database Core
    • None
    • New Contributors Level (Easy)

    Description

      It looks like the values in the couch_dbs_by_name table are tuples of 2
      terms in couch_server.terminate():

      terminate(_Reason, _Srv) ->
      [couch_util:shutdown_sync(Pid) || {_, {Pid, _LruTime}} <-
      ets:tab2list(couch_dbs_by_name)],
      ok.

      But in the rest of the code the values are always 3-term-tuples:

      {opened, Pid, LruTime}

      or

      {opening, Opener, [Froms]}

      The patch is expected to solve the issue. All the tests pass.

      See also: http://thread.gmane.org/gmane.comp.db.couchdb.devel/15741

      Attachments

        1. patch-issue-1196.txt
          0.6 kB
          Andrey Somov

        Activity

          People

            Unassigned Unassigned
            trophybase Andrey Somov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified