steveloughran commented on issue #794: HADOOP-16085: use object version or 
etags to protect against inconsistent read after replace/overwrite
URL: https://github.com/apache/hadoop/pull/794#issuecomment-493040986
 
 
   Created #824 with my changes. 
   
   @bgaborg and I worked out that the reason your tests were working but our 
test runs failing were because you'd explicitly set authoritative = false in 
your config files, whereas we were going with the default, and for hadoop-aws 
test runs, auth is automatically set to true (we should look at that 
elsewhere). 
   
   Also made some other changes about error reporting and how assertions on 
exceptions in test failures are examined. FWIW, here's my (best practises on 
test 
design)[https://github.com/steveloughran/formality/blob/master/styleguide/styleguide.md],
 a two keys ones being: 
   * never hard code the string to check for in an exception if you have a 
choice, just add some constant in src/main and refer to it in both places
   * stack traces are too precious to lose. 
   
   With these test we have consistent test runs. Let's see what Yetus says. 
   
   We've been discussing how we ought to actually switch between auth and 
nonauth mode in some of the parameterized tests so we can actually explore both 
options; the value of getObjectMetadata() calls expected in the tests would be: 
`isAuth? 0 : 1`. Do you want to try that?
   
   once we've got that test coverage down and we are all happy with our test 
suites working locally, we should be done

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to