CouchDB
  1. CouchDB
  2. COUCHDB-1196

The server cannot terminate properly closing all the databases

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2
    • Fix Version/s: 1.2
    • Component/s: Database Core
    • Labels:
      None
    • Skill Level:
      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

        Activity

        Andrey Somov created issue -
        Andrey Somov made changes -
        Field Original Value New Value
        Attachment patch-issue-1196.txt [ 12482689 ]
        Filipe Manana made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.2 [ 12315198 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            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

                Development