-
Notifications
You must be signed in to change notification settings - Fork 3.4k
HBASE-29686 Compatible issue of HFileOutputFormat2#configureRemoteClu… #7415
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For me, I do not think throwing RuntimeException here is the correct way.
Maybe a better way is to introduce a new method which throws IOException, and deprecated the current method where we will just call the new method and catch the IOException and convert it to an UncheckedIOException?
| try { | ||
| TableMapReduceUtil.initCredentialsForCluster(job, clusterConf); | ||
| } catch (IOException e) { | ||
| throw new RuntimeException(e); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UncheckedIOException?
Added method ‘configureForRemoteCluster’ and throw IOException |
|
🎊 +1 overall
This message was automatically generated. |
|
🎊 +1 overall
This message was automatically generated. |
…ster