[CDAP-8961] Unit test framework for plugins throws a lot of unwanted warnings Created: 13/Mar/17  Updated: 25/May/17  Resolved: 25/May/17

Status: Resolved
Project: CDAP
Component/s: App Fabric
Affects Version/s: None
Fix Version/s: 4.2.0

Type: Bug Priority: Major
Reporter: Sreevatsan Raman Assignee: Albert Shau
Resolution: Fixed Votes: 0
Labels: None

Release Notes: Fixed warnings about /opt/cdap/master/artifacts not being a directory in unit tests.
Rank: 1|hzzxm7:

 Description   

Unit test framework for plugins throws a lot of Warning messages. While fixing this, we should also check the impact of wrongly configured artifacts directory on distributed environments.

{code]

2017-03-12 21:35:48,824 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:52,078 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:52,079 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:55,071 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:55,072 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:55,140 - WARN [main:c.c.c.i.a.r.a.ArtifactRepository@112] - Ignoring /opt/cdap/master/artifacts because it is not a directory.
2017-03-12 21:35:56,756 - ERROR [main:c.c.c.g.h.AppLifecycleHttpHandler$1@404] - Deploy failure
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Required property 'field' missing for plugin of type batchaggregator, name TopN.
at com.google.common.util.concurrent.Futures$ImmediateFailedFuture.get(Futures.java:183) ~[hive-exec-1.2.1.jar:1.2.1]
at com.google.common.util.concurrent.Futures$ImmediateFuture




 Comments   
Comment by Terence Yim [ 13/Mar/17 ]

Seems like there are multiple instances of ArtifactRepository being created since that log is from the constructor. Usually we only need one instance of ArtifactRepository.

Comment by Albert Shau [ 23/May/17 ]

https://github.com/caskdata/cdap/pull/8873

Generated at Mon Dec 10 23:13:38 UTC 2018 using Jira 7.13.0#713000-sha1:fbf406879436de2f3fb1cfa09c7fa556fb79615a.