[TACHYON-148] Fix bug in tachyon.examples.Performance

Fix the bug mentioned in [TACHYON-148]. The tachyon.examples.Performance class has two bugs:
Read test checks the data in different byte order with the write test.
In write test, it will repeatedly write the same file when one thread needs to write several files.
Thanks
On Sep 10, 2014 7:23 PM, "QianHao Dong" <notifications@github.com> wrote:

> In core/src/main/java/tachyon/examples/Performance.java:
>
> > @@ -261,7 +261,7 @@ public void readPartition() throws IOException {
> >            sum += mBuf.get(pId % 16);
> >
> >            if (DEBUG_MODE) {
> > -            buf.DATA.flip();
> > +            buf.DATA.order(ByteOrder.nativeOrder()).flip();
>
> Yes. It makes the LOG print the int in a correct byte order. For example,
> if not ordered. it will print "0 16777216 33554432 50331648" instead of "0
> 1 2 3".
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/amplab/tachyon/pull/426/files#r17401386>.
>