Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu


> On Aug. 27, 2016, 12:39 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 440
> > 
> >
> > Do we really want to create a partition location in setup function? Not 
> > all tests need this right?

But half of them need this partition path. It will be duplicate to create 
partition dir in each of test, for new tests, we might forget to create it. 

BTW, it's time-consuming to create a patch then submit to sentry jira to pass 
hadoop-qa. So will leave this review for a while until get all the reviewers's 
comments. Thanks.


- Anne


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147055
---


On Aug. 27, 2016, 12:42 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:42 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur


> On Aug. 27, 2016, 12:30 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 447
> > 
> >
> > Why is this 777? Seems too open for a security test.
> 
> Anne Yu wrote:
> Not sure why originally most tests configured it as 777. Will change it 
> to drwxrwx---.

770 might be too restrictive. We may need 771.


- Sravya


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147050
---


On Aug. 27, 2016, 12:42 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:42 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/
---

(Updated Aug. 27, 2016, 12:42 a.m.)


Review request for sentry, Hao Hao and Sravya Tirukkovalur.


Changes
---

Addressed previous code review comments.


Bugs: SENTRY-1429 and SENTRY-1455
https://issues.apache.org/jira/browse/SENTRY-1429
https://issues.apache.org/jira/browse/SENTRY-1455


Repository: sentry


Description
---

SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
test class, improve its cleanUp and setUp for temp HDFS dirs; divide test class 
into smoke test class and p2 test class; in post commit run, we will only run 
smoke tests.


Diffs (updated)
-

  pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
 b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
 be6d0822ea56509ae9171d2b79026b1c952c2ec9 

Diff: https://reviews.apache.org/r/51471/diff/


Testing
---

Local.


Thanks,

Anne Yu



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147055
---




sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 (line 440)


Do we really want to create a partition location in setup function? Not all 
tests need this right?


- Sravya Tirukkovalur


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu


> On Aug. 27, 2016, 12:30 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 445
> > 
> >
> > Why are we assuming true here? If the mkdir failed then the setup 
> > essentially fails, failing the test as well isnt it?
> 
> Sravya Tirukkovalur wrote:
> My bad, just checked the semantics of assumeTrue, so we are basically 
> skipping if mkdir fails. That seems fair enough.

I will put assert instead of assume here.


> On Aug. 27, 2016, 12:30 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 447
> > 
> >
> > Why is this 777? Seems too open for a security test.

Not sure why originally most tests configured it as 777. Will change it to 
drwxrwx---.


> On Aug. 27, 2016, 12:30 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 452
> > 
> >
> > Same here. Why assume.true?

Will change it back assert.


- Anne


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147050
---


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur


> On Aug. 27, 2016, 12:30 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  line 445
> > 
> >
> > Why are we assuming true here? If the mkdir failed then the setup 
> > essentially fails, failing the test as well isnt it?

My bad, just checked the semantics of assumeTrue, so we are basically skipping 
if mkdir fails. That seems fair enough.


- Sravya


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147050
---


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147050
---




sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 (line 445)


Why are we assuming true here? If the mkdir failed then the setup 
essentially fails, failing the test as well isnt it?



sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 (line 447)


Why is this 777? Seems too open for a security test.



sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 (line 452)


Same here. Why assume.true?


- Sravya Tirukkovalur


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu


> On Aug. 27, 2016, 12:24 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  lines 437-453
> > 
> >
> > So this is the new improvement right?
> 
> Anne Yu wrote:
> Thanks for reviewing. Correct, to ensure for each test external dirs can 
> be re-created without correct properties.

Typo, "ensure for each test external dirs can be re-created with correct 
properties."


- Anne


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147048
---


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu


> On Aug. 27, 2016, 12:24 a.m., Sravya Tirukkovalur wrote:
> > sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java,
> >  lines 437-453
> > 
> >
> > So this is the new improvement right?

Thanks for reviewing. Correct, to ensure for each test external dirs can be 
re-created without correct properties.


- Anne


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147048
---


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147048
---




sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 (lines 437 - 453)


So this is the new improvement right?


- Sravya Tirukkovalur


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Sravya Tirukkovalur

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/#review147047
---



Thanks for refactoring this Anne! It is a bit hard to review the improvements 
you made along with refactoring, as there is no diff of changes due to new 
files. Can you point us to the code changes that you made?

- Sravya Tirukkovalur


On Aug. 27, 2016, 12:13 a.m., Anne Yu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/51471/
> ---
> 
> (Updated Aug. 27, 2016, 12:13 a.m.)
> 
> 
> Review request for sentry, Hao Hao and Sravya Tirukkovalur.
> 
> 
> Bugs: SENTRY-1429 and SENTRY-1455
> https://issues.apache.org/jira/browse/SENTRY-1429
> https://issues.apache.org/jira/browse/SENTRY-1455
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
> test class, improve its cleanUp and setUp for temp HDFS dirs; divide test 
> class into smoke test class and p2 test class; in post commit run, we will 
> only run smoke tests.
> 
> 
> Diffs
> -
> 
>   pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
>  b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
>  PRE-CREATION 
>   
> sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
>  be6d0822ea56509ae9171d2b79026b1c952c2ec9 
> 
> Diff: https://reviews.apache.org/r/51471/diff/
> 
> 
> Testing
> ---
> 
> Local.
> 
> 
> Thanks,
> 
> Anne Yu
> 
>



Re: Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/
---

(Updated Aug. 27, 2016, 12:13 a.m.)


Review request for sentry, Hao Hao and Sravya Tirukkovalur.


Changes
---

Add solr tests back into post commit run profile.


Bugs: SENTRY-1429 and SENTRY-1455
https://issues.apache.org/jira/browse/SENTRY-1429
https://issues.apache.org/jira/browse/SENTRY-1455


Repository: sentry


Description
---

SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
test class, improve its cleanUp and setUp for temp HDFS dirs; divide test class 
into smoke test class and p2 test class; in post commit run, we will only run 
smoke tests.


Diffs (updated)
-

  pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
 b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
 be6d0822ea56509ae9171d2b79026b1c952c2ec9 

Diff: https://reviews.apache.org/r/51471/diff/


Testing
---

Local.


Thanks,

Anne Yu



Review Request 51471: SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration and unblock post-commit job.

2016-08-26 Thread Anne Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/51471/
---

Review request for sentry, Hao Hao and Sravya Tirukkovalur.


Bugs: SENTRY-1429 and SENTRY-1455
https://issues.apache.org/jira/browse/SENTRY-1429
https://issues.apache.org/jira/browse/SENTRY-1455


Repository: sentry


Description
---

SENTRY-1429, SENTRY-1455: fix flaky TestHDFSIntegration, refactor this huge 
test class, improve its cleanUp and setUp for temp HDFS dirs; divide test class 
into smoke test class and p2 test class; in post commit run, we will only run 
smoke tests.


Diffs
-

  pom.xml b53e7766749c75f8e36097f624fd7a812c6d1761 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
 b0a3b6edc6201a9f902df1786f591b6bf3ac2250 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationAdvanced.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationBase.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationEnd2End.java
 PRE-CREATION 
  
sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegrationWithHA.java
 be6d0822ea56509ae9171d2b79026b1c952c2ec9 

Diff: https://reviews.apache.org/r/51471/diff/


Testing
---

Local.


Thanks,

Anne Yu



Commit missing in the mirrored repo

2016-08-26 Thread Hao Hao
Hi,

It looks like the following commit from yesterday is missing in
https://github.com/apache/Sentry/. However, it is committed to
https://git1-us-wåçest.apache.org/repos/asf?p=sentry.git;a=commit;h=df2b2736

.

   - SENTRY-1450: Have privilege converter set by Kafka binding (Ashish K
   Singh, Reviewed by: Hao Hao and Dapeng Sun), Commit:
   df2b27364753cf146d34d912ff9d9037c4cca9aa

Does anyone have some idea why? Thanks!

Best,
Hao