You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by Darrell Taylor <da...@gmail.com> on 2015/05/22 17:34:59 UTC

Maven always detects changes - Is this a Docker 'feature'?

Hi,

Is it normal behaviour for maven to detect changes when I run tests with no
changes?

e.g.
$ mvn test -Dtest=TestDFSShell -nsu -o
...
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
hadoop-hdfs ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 576 source files to
/home/darrell/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/classes
...

Then I run the same command again without touching anything else and it
compiles everything again.  It's getting rather tedious.

I am running this from inside the docker container.

Any help appreciated.

Thanks
Darrell.

Re: Maven always detects changes - Is this a Docker 'feature'?

Posted by Steve Loughran <st...@hortonworks.com>.
> On 17 Jun 2015, at 08:46, Darrell Taylor <da...@gmail.com> wrote:
> 
> Also comparing the clock inside Docker compared to the host machine the
> only difference is TZ, Docker is UTC, my host machine is BST.  So
> underlying time is the same.

if you are using the host machine for filestore, then maybe TZ differences will be enough. Try setting them to match

Re: Maven always detects changes - Is this a Docker 'feature'?

Posted by Darrell Taylor <da...@gmail.com>.
darrell@0e58329b3df9:~/hadoop/hadoop-project/target$ ant -diagnostics

...
-------------------------------------------
 Temp dir
-------------------------------------------
Temp dir is /tmp
Temp dir is writeable
Temp dir alignment with system clock is -580 ms
...

Also comparing the clock inside Docker compared to the host machine the
only difference is TZ, Docker is UTC, my host machine is BST.  So
underlying time is the same.

Any other pointers?

On Tue, Jun 16, 2015 at 10:57 AM, Steve Loughran <st...@hortonworks.com>
wrote:

> Your clocks are probably confused.
>
> ant -diagnostics actually measures clock drift between
> System.currentTimeMillis() and the timestamps coming off the tmp dir. You
> should do the same with files touched in target/
>
>
> > On 15 Jun 2015, at 23:31, Colin P. McCabe <cm...@apache.org> wrote:
> >
> > Hi Darrell,
> >
> > Sorry, I'm not familiar with this feature of Maven.  Perhaps try
> > asking on the Apache Maven mailing list?
> >
> > best,
> > Colin
> >
> > On Fri, May 22, 2015 at 8:34 AM, Darrell Taylor
> > <da...@gmail.com> wrote:
> >> Hi,
> >>
> >> Is it normal behaviour for maven to detect changes when I run tests
> with no
> >> changes?
> >>
> >> e.g.
> >> $ mvn test -Dtest=TestDFSShell -nsu -o
> >> ...
> >> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> >> hadoop-hdfs ---
> >> [INFO] Changes detected - recompiling the module!
> >> [INFO] Compiling 576 source files to
> >> /home/darrell/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/classes
> >> ...
> >>
> >> Then I run the same command again without touching anything else and it
> >> compiles everything again.  It's getting rather tedious.
> >>
> >> I am running this from inside the docker container.
> >>
> >> Any help appreciated.
> >>
> >> Thanks
> >> Darrell.
>
>

Re: Maven always detects changes - Is this a Docker 'feature'?

Posted by Steve Loughran <st...@hortonworks.com>.
Your clocks are probably confused.

ant -diagnostics actually measures clock drift between System.currentTimeMillis() and the timestamps coming off the tmp dir. You should do the same with files touched in target/


> On 15 Jun 2015, at 23:31, Colin P. McCabe <cm...@apache.org> wrote:
> 
> Hi Darrell,
> 
> Sorry, I'm not familiar with this feature of Maven.  Perhaps try
> asking on the Apache Maven mailing list?
> 
> best,
> Colin
> 
> On Fri, May 22, 2015 at 8:34 AM, Darrell Taylor
> <da...@gmail.com> wrote:
>> Hi,
>> 
>> Is it normal behaviour for maven to detect changes when I run tests with no
>> changes?
>> 
>> e.g.
>> $ mvn test -Dtest=TestDFSShell -nsu -o
>> ...
>> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
>> hadoop-hdfs ---
>> [INFO] Changes detected - recompiling the module!
>> [INFO] Compiling 576 source files to
>> /home/darrell/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/classes
>> ...
>> 
>> Then I run the same command again without touching anything else and it
>> compiles everything again.  It's getting rather tedious.
>> 
>> I am running this from inside the docker container.
>> 
>> Any help appreciated.
>> 
>> Thanks
>> Darrell.


Re: Maven always detects changes - Is this a Docker 'feature'?

Posted by "Colin P. McCabe" <cm...@apache.org>.
Hi Darrell,

Sorry, I'm not familiar with this feature of Maven.  Perhaps try
asking on the Apache Maven mailing list?

best,
Colin

On Fri, May 22, 2015 at 8:34 AM, Darrell Taylor
<da...@gmail.com> wrote:
> Hi,
>
> Is it normal behaviour for maven to detect changes when I run tests with no
> changes?
>
> e.g.
> $ mvn test -Dtest=TestDFSShell -nsu -o
> ...
> [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
> hadoop-hdfs ---
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 576 source files to
> /home/darrell/hadoop/hadoop-hdfs-project/hadoop-hdfs/target/classes
> ...
>
> Then I run the same command again without touching anything else and it
> compiles everything again.  It's getting rather tedious.
>
> I am running this from inside the docker container.
>
> Any help appreciated.
>
> Thanks
> Darrell.