Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS, mail # dev - profiling hdfs write path


Copy link to this message
-
Re: profiling hdfs write path
Radim Kolar 2012-12-04, 17:39

> If you're just going to insult us, please stay away. We don't need
> your help unless you're going to be constructive.
Good units tests will catch code modifications like:

from:
     long getLastByteOffsetBlock() {
       return lastByteOffsetInBlock;
     }

to

from:
     long getLastByteOffsetBlock() {
       return lastByteOffsetInBlock-1;
   }

I did 10 of such changes and about 60% were undetected.