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

Close DestStats timer on feed close

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • cbgt
    • None

    Description

      While looking at an unrelated memory problem associated with Sync Gateway databases being closed and reopened, I noticed that cbgt was gradually increasing memory usage in NewDestStats every time a feed was stopped and started.  It looks to me like the timers need to be stopped when a feed is closed, based on the comment in go-metrics for NewTimer().  

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            adamf Adam Fraser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty