Github user zhangh43 commented on the issue:
https://github.com/apache/incubator-hawq/pull/1151
This PR use different users to run different queries, which is a
consideration of performance. Since adding a policy in ranger will lead to
several secs delay, and we use sleep() to ensure policy is ready. If we add
policy for each query, the total sleep time is linear to the case number. So we
choose to use run all the queries by different users and add policies firstly
and then sleep only once, finally we run all the queries again with added
policies to check whether policies work.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---