Skip to content
This repository has been archived by the owner on Jul 3, 2023. It is now read-only.

Fix for [OODT-970] and [OODT-969] - Tests for Avro File Manager #55

Merged
merged 1 commit into from
Feb 27, 2018

Conversation

IMS94
Copy link
Member

@IMS94 IMS94 commented Jan 10, 2018

Tests for Avro File Manager and solve the NPE problem in NettyTransceiver when Avro File Manager being called

…d solve the NPE problem in NettyTransceiver.
Copy link
Member

@lewismc lewismc left a comment

Choose a reason for hiding this comment

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

Thank you @IMS94 this is looking very good. Can you consider my comments. thank you

@@ -74,6 +74,16 @@ the License.
<artifactId>aws-java-sdk</artifactId>
<version>1.7.4</version>
</dependency>
<dependency>
<groupId>org.apache.avro</groupId>
<artifactId>avro-ipc</artifactId>
Copy link
Member

Choose a reason for hiding this comment

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

Can you please make the avro.version a defined property within the <properties></properties> element. Then it can be used consistently.


package org.apache.oodt.cas.filemgr.system;

import junit.framework.TestCase;
Copy link
Member

Choose a reason for hiding this comment

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

Please change this to org.junit imports and associated anntoations


public abstract class AbstractFileManagerServerTest extends TestCase {

private static final Logger LOG = Logger.getLogger(AbstractFileManagerServerTest.class.getName());
Copy link
Member

Choose a reason for hiding this comment

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

I think we use Slf4j over Log4j... maybe I am wrong.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the comments @lewismc! Well, the usage of logging is confusing since at some places it has used java.util.Logging and in some places it has used slf4j API with log4j-slf4j implementation. I personally prefer slf4j. But in these classes I kept what was being used.

Copy link
Member

Choose a reason for hiding this comment

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

Yes it is confusing. OK, please ignore my comment here then and consider the remaining comments, thank you.

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure. Thank you again. I will fix the others. I will try to make the logging consistent in the future since I believe that logging helps a lot when debugging. ;-)

@chrismattmann
Copy link
Contributor

i'm going to go ahead and commit this. It's sat too long and it's useful in its current form.

@IMS94
Copy link
Member Author

IMS94 commented Feb 27, 2018

That's fine. Only required addition to this PR is to use JUnit annotations instead of extending TestCase. may be I can do it later.

@chrismattmann
Copy link
Contributor

awesome thanks @IMS94 OK so build passes on apache:development branch. Going to merge into apache:master and then push. Thanks!

[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ oodt ---
[INFO] Installing /Users/mattmann/git/oodt/pom.xml to /Users/mattmann/.m2/repository/org/apache/oodt/oodt/1.9-SNAPSHOT/oodt-1.9-SNAPSHOT.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] OODT Core .......................................... SUCCESS [  2.508 s]
[INFO] Common Utilities ................................... SUCCESS [ 30.655 s]
[INFO] CAS Command Line Interface ......................... SUCCESS [ 10.708 s]
[INFO] OODT - Configuration Management .................... SUCCESS [ 25.957 s]
[INFO] Process Control System Input Data Package .......... SUCCESS [  4.017 s]
[INFO] Catalog and Archive Service Generic Multi-valued Metadata Container SUCCESS [  6.097 s]
[INFO] Catalog and Archive File Management Component ...... SUCCESS [03:50 min]
[INFO] Catalog and Archive Resource Management Component .. SUCCESS [ 28.565 s]
[INFO] Catalog and Archive Workflow Management Component .. SUCCESS [ 38.392 s]
[INFO] Catalog and Archive Crawling Framework ............. SUCCESS [ 24.234 s]
[INFO] OODT CAS Curator Single Sign On Security Package ... SUCCESS [  1.885 s]
[INFO] CAS Curation Web Services .......................... SUCCESS [ 10.409 s]
[INFO] Process Control System Core Package ................ SUCCESS [ 19.409 s]
[INFO] OODT Wicket Web Components ......................... SUCCESS [  5.704 s]
[INFO] CAS Curation Interface ............................. SUCCESS [ 11.966 s]
[INFO] CAS PGE Adaptor Framework .......................... SUCCESS [ 26.062 s]
[INFO] CAS Installer Maven Mojo ........................... SUCCESS [  3.811 s]
[INFO] OODT :: Archetypes :: OpsUI ........................ SUCCESS [  1.136 s]
[INFO] OODT :: Archetypes :: RADiX ........................ SUCCESS [  1.382 s]
[INFO] OODT :: Archetypes ................................. SUCCESS [  0.054 s]
[INFO] CAS File Manager Browser Web App ................... SUCCESS [  9.862 s]
[INFO] CAS Workflow Manager Monitor Web App ............... SUCCESS [  5.577 s]
[INFO] CAS Product Server Web Application ................. SUCCESS [ 17.040 s]
[INFO] CAS Workflow REST Services ......................... SUCCESS [  4.005 s]
[INFO] Process Control System Operator Interface Webapp ... SUCCESS [ 20.761 s]
[INFO] OODT Process Control System JAX-RS service layer ... SUCCESS [  8.773 s]
[INFO] Apache OODT ........................................ SUCCESS [ 13.709 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 09:23 min
[INFO] Finished at: 2018-02-26T20:31:43-08:00
[INFO] Final Memory: 137M/1559M
[INFO] ------------------------------------------------------------------------
nonas:oodt mattmann$ 

@asfgit asfgit merged commit 36f320e into apache:development Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants