{"action":"created","issue":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6322","repository_url":"https://api.github.com/repos/greenplum-db/gpdb","labels_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6322/labels{/name}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6322/comments","events_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6322/events","html_url":"https://github.com/greenplum-db/gpdb/pull/6322","id":384194251,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNDUzMjYx","number":6322,"title":"resgroup: fix startup error when all cpu cores are allocated.","user":{"login":"pivotal-ning-yu","id":25739550,"node_id":"MDQ6VXNlcjI1NzM5NTUw","avatar_url":"https://avatars2.githubusercontent.com/u/25739550?v=4","gravatar_id":"","url":"https://api.github.com/users/pivotal-ning-yu","html_url":"https://github.com/pivotal-ning-yu","followers_url":"https://api.github.com/users/pivotal-ning-yu/followers","following_url":"https://api.github.com/users/pivotal-ning-yu/following{/other_user}","gists_url":"https://api.github.com/users/pivotal-ning-yu/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotal-ning-yu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotal-ning-yu/subscriptions","organizations_url":"https://api.github.com/users/pivotal-ning-yu/orgs","repos_url":"https://api.github.com/users/pivotal-ning-yu/repos","events_url":"https://api.github.com/users/pivotal-ning-yu/events{/privacy}","received_events_url":"https://api.github.com/users/pivotal-ning-yu/received_events","type":"User","site_admin":false},"labels":[{"id":597215572,"node_id":"MDU6TGFiZWw1OTcyMTU1NzI=","url":"https://api.github.com/repos/greenplum-db/gpdb/labels/Resource%20Groups","name":"Resource Groups","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-26T06:43:49Z","updated_at":"2018-11-26T06:44:12Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/6322","html_url":"https://github.com/greenplum-db/gpdb/pull/6322","diff_url":"https://github.com/greenplum-db/gpdb/pull/6322.diff","patch_url":"https://github.com/greenplum-db/gpdb/pull/6322.patch"},"body":"When all the cpu cores are allocated the default cpuset group should\r\nfallback to core 0.  However this fallback logic was only added on\r\nCREATE / ALTER RESOURCE GROUP, but missing in startup logic, an empty cpu\r\ncore list \"\" is set to cgroup and cause a runtime error:\r\n\r\n    can't write data to file '/sys/fs/cgroup/cpuset/gpdb/1/cpuset.cpus':\r\n      No space left on device (resgroup-ops-linux.c:916)\r\n\r\nFixed by converting empty cpu bitset to \"-1\" instead of \"\"."},"comment":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/comments/441534736","html_url":"https://github.com/greenplum-db/gpdb/pull/6322#issuecomment-441534736","issue_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6322","id":441534736,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTUzNDczNg==","user":{"login":"pivotal-ning-yu","id":25739550,"node_id":"MDQ6VXNlcjI1NzM5NTUw","avatar_url":"https://avatars2.githubusercontent.com/u/25739550?v=4","gravatar_id":"","url":"https://api.github.com/users/pivotal-ning-yu","html_url":"https://github.com/pivotal-ning-yu","followers_url":"https://api.github.com/users/pivotal-ning-yu/followers","following_url":"https://api.github.com/users/pivotal-ning-yu/following{/other_user}","gists_url":"https://api.github.com/users/pivotal-ning-yu/gists{/gist_id}","starred_url":"https://api.github.com/users/pivotal-ning-yu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pivotal-ning-yu/subscriptions","organizations_url":"https://api.github.com/users/pivotal-ning-yu/orgs","repos_url":"https://api.github.com/users/pivotal-ning-yu/repos","events_url":"https://api.github.com/users/pivotal-ning-yu/events{/privacy}","received_events_url":"https://api.github.com/users/pivotal-ning-yu/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T06:44:12Z","updated_at":"2018-11-26T06:44:12Z","author_association":"MEMBER","body":"This fix is also needed in 5X branch."}}
{"actor":{"display_login":"pivotal-ning-yu"}}