Re: Review Request 67527: SENTRY-2262: Sentry client is not compatible when connecting to Sentry 2.0

2018-06-12 Thread Na Li via Review Board

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


Ship it!




Ship It!

- Na Li


On June 12, 2018, 4:27 p.m., Sergio Pena wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67527/
> ---
> 
> (Updated June 12, 2018, 4:27 p.m.)
> 
> 
> Review request for sentry and Na Li.
> 
> 
> Bugs: SENTRY-2262
> https://issues.apache.org/jira/browse/SENTRY-2262
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> This patch fixes an incompatibility between Sentry 2.1 clients and Sentry 2.0 
> servers.
> 
> 
> Diffs
> -
> 
>   
> sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
>  4e605ae78ffebe54349c4e27c6bc73ee25dd85b6 
> 
> 
> Diff: https://reviews.apache.org/r/67527/diff/2/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>



Re: Review Request 67527: SENTRY-2262: Sentry client is not compatible when connecting to Sentry 2.0

2018-06-12 Thread Sergio Pena via Review Board

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

(Updated June 12, 2018, 4:27 p.m.)


Review request for sentry and Na Li.


Bugs: SENTRY-2262
https://issues.apache.org/jira/browse/SENTRY-2262


Repository: sentry


Description
---

This patch fixes an incompatibility between Sentry 2.1 clients and Sentry 2.0 
servers.


Diffs (updated)
-

  
sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
 4e605ae78ffebe54349c4e27c6bc73ee25dd85b6 


Diff: https://reviews.apache.org/r/67527/diff/2/

Changes: https://reviews.apache.org/r/67527/diff/1-2/


Testing
---


Thanks,

Sergio Pena



Re: Review Request 67527: SENTRY-2262: Sentry client is not compatible when connecting to Sentry 2.0

2018-06-12 Thread Na Li via Review Board

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




sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
Lines 237 (patched)


should you add "TODO" in comment indicating we will change the code in the 
future to use entityName instead?


- Na Li


On June 11, 2018, 3:19 p.m., Sergio Pena wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67527/
> ---
> 
> (Updated June 11, 2018, 3:19 p.m.)
> 
> 
> Review request for sentry and Na Li.
> 
> 
> Bugs: SENTRY-2262
> https://issues.apache.org/jira/browse/SENTRY-2262
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> This patch fixes an incompatibility between Sentry 2.1 clients and Sentry 2.0 
> servers.
> 
> 
> Diffs
> -
> 
>   
> sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
>  4e605ae78ffebe54349c4e27c6bc73ee25dd85b6 
> 
> 
> Diff: https://reviews.apache.org/r/67527/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>



Re: Review Request 67527: SENTRY-2262: Sentry client is not compatible when connecting to Sentry 2.0

2018-06-12 Thread Na Li via Review Board


> On June 12, 2018, 4:05 p.m., Na Li wrote:
> > sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
> > Line 236 (original), 236 (patched)
> > 
> >
> > should you set the entityName as well?

Talked with Sergio. setting entityName could cause server to throw exception 
although it is not confirmed.


- Na


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


On June 11, 2018, 3:19 p.m., Sergio Pena wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67527/
> ---
> 
> (Updated June 11, 2018, 3:19 p.m.)
> 
> 
> Review request for sentry and Na Li.
> 
> 
> Bugs: SENTRY-2262
> https://issues.apache.org/jira/browse/SENTRY-2262
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> This patch fixes an incompatibility between Sentry 2.1 clients and Sentry 2.0 
> servers.
> 
> 
> Diffs
> -
> 
>   
> sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
>  4e605ae78ffebe54349c4e27c6bc73ee25dd85b6 
> 
> 
> Diff: https://reviews.apache.org/r/67527/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>



Re: Review Request 67527: SENTRY-2262: Sentry client is not compatible when connecting to Sentry 2.0

2018-06-12 Thread Na Li via Review Board

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




sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
Line 236 (original), 236 (patched)


should you set the entityName as well?


- Na Li


On June 11, 2018, 3:19 p.m., Sergio Pena wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/67527/
> ---
> 
> (Updated June 11, 2018, 3:19 p.m.)
> 
> 
> Review request for sentry and Na Li.
> 
> 
> Bugs: SENTRY-2262
> https://issues.apache.org/jira/browse/SENTRY-2262
> 
> 
> Repository: sentry
> 
> 
> Description
> ---
> 
> This patch fixes an incompatibility between Sentry 2.1 clients and Sentry 2.0 
> servers.
> 
> 
> Diffs
> -
> 
>   
> sentry-service/sentry-service-api/src/main/java/org/apache/sentry/api/service/thrift/SentryPolicyServiceClientDefaultImpl.java
>  4e605ae78ffebe54349c4e27c6bc73ee25dd85b6 
> 
> 
> Diff: https://reviews.apache.org/r/67527/diff/1/
> 
> 
> Testing
> ---
> 
> 
> Thanks,
> 
> Sergio Pena
> 
>