{"action":"created","issue":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6405","repository_url":"https://api.github.com/repos/greenplum-db/gpdb","labels_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6405/labels{/name}","comments_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6405/comments","events_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6405/events","html_url":"https://github.com/greenplum-db/gpdb/pull/6405","id":387072033,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM1NjQ0MTk5","number":6405,"title":"5X: 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":824344248,"node_id":"MDU6TGFiZWw4MjQzNDQyNDg=","url":"https://api.github.com/repos/greenplum-db/gpdb/labels/5X_STABLE","name":"5X_STABLE","color":"404abc","default":false},{"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-12-04T00:56:28Z","updated_at":"2018-12-04T00:56:53Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/greenplum-db/gpdb/pulls/6405","html_url":"https://github.com/greenplum-db/gpdb/pull/6405","diff_url":"https://github.com/greenplum-db/gpdb/pull/6405.diff","patch_url":"https://github.com/greenplum-db/gpdb/pull/6405.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 \"\" to \"-1\" in startup logic.\r\n\r\n(cherry picked from commit a50fc538b25dc83b6afd91ad256ed762e98ebbe2)\r\n\r\n## Here are some reminders before you submit the pull request\r\n- [x] Add tests for the change\r\n- [x] Document changes: not needed\r\n- [x] Communicate in the mailing list if needed: reviewed on master already\r\n- [x] Pass `make installcheck`"},"comment":{"url":"https://api.github.com/repos/greenplum-db/gpdb/issues/comments/443928822","html_url":"https://github.com/greenplum-db/gpdb/pull/6405#issuecomment-443928822","issue_url":"https://api.github.com/repos/greenplum-db/gpdb/issues/6405","id":443928822,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzkyODgyMg==","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-12-04T00:56:53Z","updated_at":"2018-12-04T00:56:53Z","author_association":"MEMBER","body":"This is the 5X version of https://github.com/greenplum-db/gpdb/pull/6322"}}
{"actor":{"display_login":"pivotal-ning-yu"}}