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

new:dev: Upgrade thrift & maven-thrift-plugin. Make tests relocatable #46

Merged
merged 3 commits into from
Jul 17, 2017
Merged

new:dev: Upgrade thrift & maven-thrift-plugin. Make tests relocatable #46

merged 3 commits into from
Jul 17, 2017

Conversation

vrajat
Copy link
Contributor

@vrajat vrajat commented Jul 17, 2017

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.

Rajat Venkatesh added 2 commits July 17, 2017 13:59
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();
Copy link
Contributor

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

Copy link
Contributor Author

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.*;
Copy link
Contributor

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.

Copy link
Contributor Author

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 ?

Copy link
Contributor

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.

@shubhamtagra
Copy link
Contributor

lgtm, couple of minor comments.

@vrajat vrajat merged commit d7c0070 into qubole:master Jul 17, 2017
@vrajat vrajat deleted the upgrade-thrift branch July 17, 2017 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants