The current rate limiting is not effective in non KRB environments
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by reviewing the rate-limiting change from pull request 314 and the set_ugi call in HiveMetaStoreClient.java. Compare the audit logs and UGI behavior in Kerberos and non-Kerberos environments; the work is complete only when the desired rate-limiting behavior and user identification are defined and verified in both modes.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. For example - I'm always frustrated when [...]
The current rate limiting has been introduced from https://github.com/ExpediaGroup/waggle-dance/pull/314.
But when we tested it, we found that it didn't work in krb environment.
Describe the solution you'd like
According to the log, users are all empty, as follows .
08:36:28.243 [pool-6-thread-198] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:shutdown, args:null]
08:37:15.882 [pool-6-thread-143] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:getThreadId, args:null]
08:37:15.883 [pool-6-thread-143] INFO com.hotels.bdp.waggledance.server.ExceptionWrappingHMSHandler - WD Audit:[User:, method:get_current_notificationEventId, args:null]
After investigation, we found that the current limiting depends on ugi, and the ugi of WD comes from calling the set_ugi method. The call to set_ugi comes from the client of WD. But this client call can only be called in non secure mode (non KRB).
The following code in class HiveMetaStoreClient.java can illustrate :
Describe alternatives you've considered
Perhaps we need to set up ugi in the KRB environmen.
Additional context
For now, we don't need the current limiting. Perhaps I will implement it when needed in the future.
- Dominant language
- Java
- Stars
- 289
- Forks
- 79
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 4
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ExpediaGroup/waggle-dance
-
Difficulty 2/5 1-3 hours Newbie friendliness 50/100
ExpediaGroup/waggle-dance#341 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
ExpediaGroup/waggle-dance#333 ·
-
Can we implement a MetaStoreFilterHook to modify the path and support HMS that uses the same nsOpen
Difficulty 5/5 Over a week Newbie friendliness 35/100
ExpediaGroup/waggle-dance#320 · 9 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
ExpediaGroup/waggle-dance#288 · 6 comments ·
-
Kerberos IssueOpen
Difficulty 4/5 3-5 days Newbie friendliness 20/100
ExpediaGroup/waggle-dance#287 · 12 comments ·
All issues in ExpediaGroup/waggle-dance
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
avaje/avaje-metrics#142 · 1 comment ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
RamazanKara/nightjar#299 ·
-
Support emergency=access_point (POI type and rendering)Possibly taken @julenepj claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
osmandapp/OsmAnd#27424 · 1 comment ·
Maintainers usually reply within 1 day
-
Link not working in the feedback concerning String.format() in exercise 'Tim from Marketing'Possibly taken @LaibaMunir016 claimed this 1 day ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 · 1 comment ·