Skip to content
This repository has been archived by the owner on Jun 7, 2021. It is now read-only.

[TRAFODION-1988] Better Java exception handling in Trafodion - Part2 #559

Merged
merged 4 commits into from Jul 8, 2016

Conversation

selvaganesang
Copy link
Contributor

This time the focus is on hbasetmlib2 improvements

This time the focus is on hbasetmlib2 improvements
@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/834/

@Traf-Jenkins
Copy link

@selvaganesang
Copy link
Contributor Author

jenkins, extra tests

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/ExtraTest-PR-master/13/

@Traf-Jenkins
Copy link

} catch(InterruptedException ie) {
LOG.warn("Interrupting commitDDLLock.wait, but retrying ", ie);
loopBack = true;
} while (loopBack);
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right to me. Does "try" have a looping semantic when followed by "while"? Or did you intend to code a do { } around the try/catch block? (I'm thinking that the "while (loopBack);" does nothing if loopBack is false but loops infinitely if loopBack is true.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Interesting. It is not clear why didn't Java compiler catch this issue. I am fixing the code to ignore InterruptedException.

@Traf-Jenkins
Copy link

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/840/

@Traf-Jenkins
Copy link

@DaveBirdsall
Copy link
Contributor

Looks good, Selva.

@DaveBirdsall
Copy link
Contributor

Is this ready to merge?

boolean loopBack = false;
do {
try {
rt.join();

Choose a reason for hiding this comment

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

Should there be a loopBack = false after rt.join in the case where an exception occurred but then the operation succeeded?

@Traf-Jenkins
Copy link

Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/879/

@Traf-Jenkins
Copy link

@selvaganesang
Copy link
Contributor Author

jenkins, retest

@Traf-Jenkins
Copy link

New Check Test Started: https://jenkins.esgyn.com/job/Check-PR-master/888/

@Traf-Jenkins
Copy link

@selvaganesang
Copy link
Contributor Author

Are there any more review comments that I need to take care of?

@sandhyasun
Copy link
Contributor

Looked at the 4 sql .java files . Changes look good . Think it's ready to merge .

@asfgit asfgit merged commit 4e26e1c into apache:master Jul 8, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
6 participants