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

get_cgroups_info doesn't update gen_server state

    XMLWordPrintable

Details

    • Untriaged
    • 0
    • Unknown

    Description

      For CBSE-16584 the cgroup stats for one of eight nodes wasn't getting computed (always zero). Restarting the ns_server sigar_port process resolved the issue.  As part of the investigation I see this code in sigar.erl

      handle_call(get_cgroups_info, _From, State) ->
          NewState = maybe_update_stats(State),
          {_, _, CGroupsInfo} = NewState#state.most_recent_unpacked,
          {reply, CGroupsInfo, State};
      

      Note the reply uses "State" rather than "NewState". However, as the computed CGroupsInfo is returned I don't see how it leads to the observed behavior.
       

      Attachments

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

        Activity

          People

            steve.watanabe Steve Watanabe
            steve.watanabe Steve Watanabe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty