payload: {"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/301869889","pull_request_review_id":259850807,"id":301869889,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwMTg2OTg4OQ==","diff_hunk":"@@ -203,7 +203,7 @@ private void resize(boolean spillingAllowed) throws IOException {\n \t\tint oldNumBuckets = numBuckets;\n \t\tMemorySegment[] oldOverflowSegments = overflowSegments;\n \t\tint newNumSegs = oldBuckets.length * 2;\n-\t\tint newNumBuckets = MathUtils.roundDownToPowerOf2(newNumSegs << table.bucketsPerSegmentBits);","path":"flink-table/flink-table-runtime-blink/src/main/java/org/apache/flink/table/runtime/hashtable/BinaryHashBucketArea.java","position":26,"original_position":17,"commit_id":"232f2da8039f8f6d7a767a492e745b70afc5bb09","original_commit_id":"43527e1d5c4bba23569e3b7d908ab93c6bb9a59e","user":{"login":"AjaxXu","id":1926555,"node_id":"MDQ6VXNlcjE5MjY1NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1926555?v=4","gravatar_id":"","url":"https://api.github.com/users/AjaxXu","html_url":"https://github.com/AjaxXu","followers_url":"https://api.github.com/users/AjaxXu/followers","following_url":"https://api.github.com/users/AjaxXu/following{/other_user}","gists_url":"https://api.github.com/users/AjaxXu/gists{/gist_id}","starred_url":"https://api.github.com/users/AjaxXu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjaxXu/subscriptions","organizations_url":"https://api.github.com/users/AjaxXu/orgs","repos_url":"https://api.github.com/users/AjaxXu/repos","events_url":"https://api.github.com/users/AjaxXu/events{/privacy}","received_events_url":"https://api.github.com/users/AjaxXu/received_events","type":"User","site_admin":false},"body":"I had changed the check condition. Is that OK.  But in my option, setting numBuckets to power of 2 is for fast matching. If this strategy is not change. The buckets.length and numBuckets is always be power of 2. Otherwise, it will result in wasting segment.","created_at":"2019-07-10T03:06:36Z","updated_at":"2019-07-10T03:06:49Z","html_url":"https://github.com/apache/flink/pull/9027#discussion_r301869889","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/9027","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/301869889"},"html":{"href":"https://github.com/apache/flink/pull/9027#discussion_r301869889"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/9027"}},"in_reply_to_id":301864180},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/9027","id":295589455,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk1NTg5NDU1","html_url":"https://github.com/apache/flink/pull/9027","diff_url":"https://github.com/apache/flink/pull/9027.diff","patch_url":"https://github.com/apache/flink/pull/9027.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/9027","number":9027,"state":"open","locked":false,"title":"[FLINK-13161][table-blink-runtime]numBuckets calculate wrong in BinaryHashBucketArea","user":{"login":"AjaxXu","id":1926555,"node_id":"MDQ6VXNlcjE5MjY1NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1926555?v=4","gravatar_id":"","url":"https://api.github.com/users/AjaxXu","html_url":"https://github.com/AjaxXu","followers_url":"https://api.github.com/users/AjaxXu/followers","following_url":"https://api.github.com/users/AjaxXu/following{/other_user}","gists_url":"https://api.github.com/users/AjaxXu/gists{/gist_id}","starred_url":"https://api.github.com/users/AjaxXu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjaxXu/subscriptions","organizations_url":"https://api.github.com/users/AjaxXu/orgs","repos_url":"https://api.github.com/users/AjaxXu/repos","events_url":"https://api.github.com/users/AjaxXu/events{/privacy}","received_events_url":"https://api.github.com/users/AjaxXu/received_events","type":"User","site_admin":false},"body":"<!--\r\n*Thank you very much for contributing to Apache Flink - we are happy that you want to help us improve Flink. To help the community review your contribution in the best possible way, please go through the checklist below, which will get the contribution into a shape in which it can be best reviewed.*\r\n\r\n*Please understand that we do not do this to make contributions to Flink a hassle. In order to uphold a high standard of quality for code contributions, while at the same time managing a large number of contributions, we need contributors to prepare the contributions well, and give reviewers enough contextual information for the review. Please also understand that contributions that do not follow this guide will take longer to review and thus typically be picked up with lower priority by the community.*\r\n\r\n## Contribution Checklist\r\n\r\n  - Make sure that the pull request corresponds to a [JIRA issue](https://issues.apache.org/jira/projects/FLINK/issues). Exceptions are made for typos in JavaDoc or documentation files, which need no JIRA issue.\r\n  \r\n  - Name the pull request in the form \"[FLINK-XXXX] [component] Title of the pull request\", where *FLINK-XXXX* should be replaced by the actual issue number. Skip *component* if you are unsure about which is the best component.\r\n  Typo fixes that have no associated JIRA issue should be named following this pattern: `[hotfix] [docs] Fix typo in event time introduction` or `[hotfix] [javadocs] Expand JavaDoc for PuncuatedWatermarkGenerator`.\r\n\r\n  - Fill out the template below to describe the changes contributed by the pull request. That will give reviewers the context they need to do the review.\r\n  \r\n  - Make sure that the change passes the automated tests, i.e., `mvn clean verify` passes. You can set up Travis CI to do that following [this guide](http://flink.apache.org/contribute-code.html#best-practices).\r\n\r\n  - Each pull request should address only one issue, not mix up code from multiple issues.\r\n  \r\n  - Each commit in the pull request has a meaningful commit message (including the JIRA id)\r\n\r\n  - Once all items of the checklist are addressed, remove the above text and this checklist, leaving only the filled out template below.\r\n\r\n\r\n**(The sections below can be removed for hotfixes of typos)**\r\n-->\r\n\r\n## What is the purpose of the change\r\n\r\n*fix numBuckets calculate in BinaryHashBucketArea*\r\n\r\n## Does this pull request potentially affect one of the following parts:\r\n\r\n  - Dependencies (does it add or upgrade a dependency): (no)\r\n  - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (no)\r\n  - The serializers: (yes / no / don't know)\r\n  - The runtime per-record code paths (performance sensitive): (no)\r\n  - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)\r\n  - The S3 file system connector: (no)\r\n\r\n## Documentation\r\n\r\n  - Does this pull request introduce a new feature? (no)\r\n","created_at":"2019-07-09T05:28:59Z","updated_at":"2019-07-10T03:06:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0899384b8ddffd78a1afb633cb7c1d9276571299","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1291537903,"node_id":"MDU6TGFiZWwxMjkxNTM3OTAz","url":"https://api.github.com/repos/apache/flink/labels/component=TableSQL/Runtime","name":"component=TableSQL/Runtime","color":"175fb7","default":false},{"id":1244454690,"node_id":"MDU6TGFiZWwxMjQ0NDU0Njkw","url":"https://api.github.com/repos/apache/flink/labels/review=description?","name":"review=description?","color":"bcf5db","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/9027/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/9027/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/9027/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/232f2da8039f8f6d7a767a492e745b70afc5bb09","head":{"label":"AjaxXu:fix_numBuckets","ref":"fix_numBuckets","sha":"232f2da8039f8f6d7a767a492e745b70afc5bb09","user":{"login":"AjaxXu","id":1926555,"node_id":"MDQ6VXNlcjE5MjY1NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1926555?v=4","gravatar_id":"","url":"https://api.github.com/users/AjaxXu","html_url":"https://github.com/AjaxXu","followers_url":"https://api.github.com/users/AjaxXu/followers","following_url":"https://api.github.com/users/AjaxXu/following{/other_user}","gists_url":"https://api.github.com/users/AjaxXu/gists{/gist_id}","starred_url":"https://api.github.com/users/AjaxXu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjaxXu/subscriptions","organizations_url":"https://api.github.com/users/AjaxXu/orgs","repos_url":"https://api.github.com/users/AjaxXu/repos","events_url":"https://api.github.com/users/AjaxXu/events{/privacy}","received_events_url":"https://api.github.com/users/AjaxXu/received_events","type":"User","site_admin":false},"repo":{"id":175530481,"node_id":"MDEwOlJlcG9zaXRvcnkxNzU1MzA0ODE=","name":"flink","full_name":"AjaxXu/flink","private":false,"owner":{"login":"AjaxXu","id":1926555,"node_id":"MDQ6VXNlcjE5MjY1NTU=","avatar_url":"https://avatars0.githubusercontent.com/u/1926555?v=4","gravatar_id":"","url":"https://api.github.com/users/AjaxXu","html_url":"https://github.com/AjaxXu","followers_url":"https://api.github.com/users/AjaxXu/followers","following_url":"https://api.github.com/users/AjaxXu/following{/other_user}","gists_url":"https://api.github.com/users/AjaxXu/gists{/gist_id}","starred_url":"https://api.github.com/users/AjaxXu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AjaxXu/subscriptions","organizations_url":"https://api.github.com/users/AjaxXu/orgs","repos_url":"https://api.github.com/users/AjaxXu/repos","events_url":"https://api.github.com/users/AjaxXu/events{/privacy}","received_events_url":"https://api.github.com/users/AjaxXu/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AjaxXu/flink","description":"Apache Flink","fork":true,"url":"https://api.github.com/repos/AjaxXu/flink","forks_url":"https://api.github.com/repos/AjaxXu/flink/forks","keys_url":"https://api.github.com/repos/AjaxXu/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AjaxXu/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AjaxXu/flink/teams","hooks_url":"https://api.github.com/repos/AjaxXu/flink/hooks","issue_events_url":"https://api.github.com/repos/AjaxXu/flink/issues/events{/number}","events_url":"https://api.github.com/repos/AjaxXu/flink/events","assignees_url":"https://api.github.com/repos/AjaxXu/flink/assignees{/user}","branches_url":"https://api.github.com/repos/AjaxXu/flink/branches{/branch}","tags_url":"https://api.github.com/repos/AjaxXu/flink/tags","blobs_url":"https://api.github.com/repos/AjaxXu/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AjaxXu/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AjaxXu/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/AjaxXu/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AjaxXu/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/AjaxXu/flink/languages","stargazers_url":"https://api.github.com/repos/AjaxXu/flink/stargazers","contributors_url":"https://api.github.com/repos/AjaxXu/flink/contributors","subscribers_url":"https://api.github.com/repos/AjaxXu/flink/subscribers","subscription_url":"https://api.github.com/repos/AjaxXu/flink/subscription","commits_url":"https://api.github.com/repos/AjaxXu/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/AjaxXu/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/AjaxXu/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/AjaxXu/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/AjaxXu/flink/contents/{+path}","compare_url":"https://api.github.com/repos/AjaxXu/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AjaxXu/flink/merges","archive_url":"https://api.github.com/repos/AjaxXu/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AjaxXu/flink/downloads","issues_url":"https://api.github.com/repos/AjaxXu/flink/issues{/number}","pulls_url":"https://api.github.com/repos/AjaxXu/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/AjaxXu/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/AjaxXu/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AjaxXu/flink/labels{/name}","releases_url":"https://api.github.com/repos/AjaxXu/flink/releases{/id}","deployments_url":"https://api.github.com/repos/AjaxXu/flink/deployments","created_at":"2019-03-14T02:03:01Z","updated_at":"2019-07-09T05:36:14Z","pushed_at":"2019-07-10T02:59:32Z","git_url":"git://github.com/AjaxXu/flink.git","ssh_url":"git@github.com:AjaxXu/flink.git","clone_url":"https://github.com/AjaxXu/flink.git","svn_url":"https://github.com/AjaxXu/flink","homepage":"","size":249910,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"8f47b38b5273c09603b53af1c6579c42172fe634","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20587599,"node_id":"MDEwOlJlcG9zaXRvcnkyMDU4NzU5OQ==","name":"flink","full_name":"apache/flink","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/apache/flink","description":"Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2019-07-10T02:46:25Z","pushed_at":"2019-07-10T03:05:08Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":"","size":249663,"stargazers_count":9370,"watchers_count":9370,"language":"Java","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5021,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":500,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":5021,"open_issues":500,"watchers":9370,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/9027"},"html":{"href":"https://github.com/apache/flink/pull/9027"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/9027"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/9027/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/9027/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/9027/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/232f2da8039f8f6d7a767a492e745b70afc5bb09"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"AjaxXu"}}