Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HIVE-23413: Create a new config to skip all locks #1220

Closed
wants to merge 2 commits into from

Conversation

pvargacl
Copy link
Contributor

@pvargacl pvargacl commented Jul 7, 2020

No description provided.

@pvargacl
Copy link
Contributor Author

pvargacl commented Jul 9, 2020

@deniskuzZ could you check this out, you already reviewed it on the review board, but I forgat about it, so now created a PR.

@github-actions
Copy link

github-actions bot commented Sep 8, 2020

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.

@github-actions github-actions bot added the stale label Sep 8, 2020
@pvargacl
Copy link
Contributor Author

pvargacl commented Sep 8, 2020

@deniskuzZ @pvary Do you still think we need this? If so please review, and I will check if it needs rebase.

public void testCheckExpectedLocks2NoReadLock() throws Exception {
testCheckExpectedLocks2(false);
}
public void testCheckExpectedLocks2(boolean readLocks) throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new row

@@ -727,35 +751,52 @@ private void testCheckExpectedLocks(boolean sharedWrite) throws Exception {
*/
@Test
public void testCheckExpectedLocks2() throws Exception {
testCheckExpectedLocks2(true);
}
@Test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: new row

Copy link
Contributor

@pvary pvary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is still needed.
Skimmed through it, and only found nits.
I would be happy if @deniskuzZ could also check.
Thanks,
Peter

@github-actions github-actions bot removed the stale label Sep 9, 2020
@deniskuzZ
Copy link
Member

Checked, however I'm not sure if it is a good idea to give the end user the option to completely disable the locking. They could end up shooting themselves in the foot.

From code perspective, change looks good.

@pvary
Copy link
Contributor

pvary commented Sep 9, 2020

Checked, however I'm not sure if it is a good idea to give the end user the option to completely disable the locking. They could end up shooting themselves in the foot.

Administrator could add it to the restricted parameters which can not be set by the user, so a customer can turn off if they feel it is problematic.

@pvargacl
Copy link
Contributor Author

@pvary So what is the conclusion? Should I add it to the restricted list by default? Or will you merge this, as is?

@pvary
Copy link
Contributor

pvary commented Sep 11, 2020

@pvary So what is the conclusion? Should I add it to the restricted list by default? Or will you merge this, as is?

I would like to see an agreement here. This is more like a democratic process, than autocratic :)

I still think this will become useful immediately when someone has a problem with the too restrictive locking. If in doubt we might just add this to HIVE_CONF_RESTRICTED_LIST, so no rouge user can use this unless the administrator explicitly allows the usage of the new config.

But this is only me, others might different opinions

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Feel free to reach out on the dev@hive.apache.org list if the patch is in need of reviews.

@github-actions github-actions bot added the stale label Nov 11, 2020
@github-actions github-actions bot closed this Nov 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants