Fixed flaky ExamplesTest.JavaLog.
Fixed flaky ExamplesTest.JavaLog.

Review: https://reviews.apache.org/r/37414

asamerh4/mesos,kaysoky/mesos,jpeach/mesos,verizonlabs/mesos,craimbert/mesos,gsantovena/mesos,andschwa/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,Gilbert88/mesos,kaysoky/mesos,neilconway/mesos,andschwa/mesos,reneploetz/mesos,abudnik/mesos,yuquanshan/customizedMesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,craimbert/mesos,chhsia0/mesos,gsantovena/mesos,zmalik/mesos,asamerh4/mesos,asamerh4/mesos,dforsyth/mesos,jpeach/mesos,reneploetz/mesos,chhsia0/mesos,abudnik/mesos,gsantovena/mesos,Aman-Jain-14/customizedMesos,craimbert/mesos,Aman-Jain-14/customizedMesos,chhsia0/mesos,neilconway/mesos,verizonlabs/mesos,asamerh4/mesos,yuquanshan/customizedMesos,jpeach/mesos,neilconway/mesos,neilconway/mesos,Gilbert88/mesos,asamerh4/mesos,reneploetz/mesos,chhsia0/mesos,yuquanshan/customizedMesos,verizonlabs/mesos,abudnik/mesos,kaysoky/mesos,verizonlabs/mesos,dforsyth/mesos,chhsia0/mesos,yuquanshan/customizedMesos,kaysoky/mesos,gsantovena/mesos,craimbert/mesos,jpeach/mesos,gsantovena/mesos,dforsyth/mesos,neilconway/mesos,zmalik/mesos,craimbert/mesos,neilconway/mesos,verizonlabs/mesos,gsantovena/mesos,Gilbert88/mesos,andschwa/mesos,reneploetz/mesos,jpeach/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,abudnik/mesos,jpeach/mesos,dforsyth/mesos,andschwa/mesos,abudnik/mesos,craimbert/mesos,verizonlabs/mesos,zmalik/mesos,jpeach/mesos,Gilbert88/mesos,kaysoky/mesos,kaysoky/mesos,Aman-Jain-14/customizedMesos,abudnik/mesos,gsantovena/mesos,dforsyth/mesos,reneploetz/mesos,dforsyth/mesos,dforsyth/mesos,kaysoky/mesos,zmalik/mesos,Gilbert88/mesos,andschwa/mesos,neilconway/mesos,Gilbert88/mesos,Aman-Jain-14/customizedMesos,zmalik/mesos,yuquanshan/customizedMesos,zmalik/mesos,abudnik/mesos,Gilbert88/mesos,craimbert/mesos,zmalik/mesos,verizonlabs/mesos,chhsia0/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,andschwa/mesos,chhsia0/mesos