You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@sentry.apache.org by "kalyan kumar kalvagadda (JIRA)" <ji...@apache.org> on 2017/06/13 13:41:00 UTC

[jira] [Comment Edited] (SENTRY-1799) Fix flaky HDFS END2END tests

    [ https://issues.apache.org/jira/browse/SENTRY-1799?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16047910#comment-16047910 ] 

kalyan kumar kalvagadda edited comment on SENTRY-1799 at 6/13/17 1:40 PM:
--------------------------------------------------------------------------

Loosing HDFS prefix is random. It is not seen every time. Let me elaborate the issue

HMSPaths, class is the the one that stores object to path mapping information. It has member variables 
{noformat}
  private volatile Entry root;
  private String[] prefixes;
{noformat}
prefixes is an array of prefixes for which sentry permissions are to be synced. root is is the root node of a tree which is constructed from these prefixes.
 When there is a path update, path should match the root tree in the HMSPaths. If it does not match, it indicates that the new path does not match to any of the configured prefixes. Such path's are ignored. In the middle of the tests one of the path in the prefix tree is lost.

This could be issue local to my setup because the tests are passing after fixing the invalid grant.


was (Author: kkalyan):
Loosing HDFS prefix is random. It is not seen every time. Let me elaborate the issue

HMSPaths, class is the the one that stores object to path mapping information. It has member variables 
{noformat}
  private volatile Entry root;
  private String[] prefixes;
{noformat}
 When there is a path update 

> Fix flaky HDFS END2END tests
> ----------------------------
>
>                 Key: SENTRY-1799
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1799
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Sentry
>    Affects Versions: sentry-ha-redesign
>            Reporter: kalyan kumar kalvagadda
>            Assignee: kalyan kumar kalvagadda
>             Fix For: sentry-ha-redesign
>
>         Attachments: SENTRY-1799.001-sentry-ha-redesign.patch, SENTRY-1799.002-sentry-ha-redesign.patch
>
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)