-
Notifications
You must be signed in to change notification settings - Fork 74
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
new:dev: Upgrade thrift & maven-thrift-plugin. Make tests relocatable #46
Conversation
Upgraded thrift from 0.9.0 to 0.9.3. The main motivation is that 0.9.3 can be installed through brew on mac. I tried to upgrade to thrift 0.10.0 but there were test failures. Another improvement is that tests assumed specific directory structures internal to Qubole. The test directories are now configured relative to `java.io.tmpdir`.
@@ -106,7 +106,8 @@ public void run() | |||
log.info("Stopping Local Transfer server"); | |||
} | |||
catch (IOException e) { | |||
log.error(String.format("Error starting Local Transfer server %s", e)); | |||
log.error(String.format("Error starting Local Transfer server %s", e), e); | |||
e.printStackTrace(); |
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.
wasnt log logging exceptions? We are using the format where exception should be logged
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.
It does but just the message. I wanted stack trace but this didnt work out as well. I'll revert this change.
import org.testng.annotations.AfterMethod; | ||
import org.testng.annotations.BeforeMethod; | ||
import org.testng.annotations.Test; | ||
import org.testng.annotations.*; |
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.
Didnt checkstyle crib about this compaction?
Easier to read import without compacting them to '*', we should revert this.
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.
No. it didnt. Test files are ignored ?
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.
Ya, looks like it. Tried and it fails for main code and passes for tests.
lgtm, couple of minor comments. |
Upgraded thrift from 0.9.0 to 0.9.3. The main motivation is that
0.9.3 can be installed through brew on mac. I tried to upgrade to
thrift 0.10.0 but there were test failures.
Upgrade maven-thrift-plugin to 0.1.11. 0.1.10 is not available anymore
in http://maven.davidtrott.com/repository. 0.1.11 is available in apache
maven repository.
Another improvement is that tests assumed specific directory
structures internal to Qubole. The test directories are now
configured relative to
java.io.tmpdir
.