Skip to content

Conversation

jaeopt
Copy link
Contributor

@jaeopt jaeopt commented Sep 22, 2020

This fixes a bug of bucketing at traffic allocation boundaries

  • EndOfRange should be compared with "less-than" but "less-than-equal" is used.
  • The bucket hashing generates 0 for userID+expID = “211314358930636871818513703488”.
  • When 0 <= 0, the bucketing interprets it as in-bucket by error, so returns a false result.

Add more test cases to cover this case in unit tests and FSC.

#OASIS-7150

@coveralls
Copy link

coveralls commented Sep 22, 2020

Coverage Status

Coverage increased (+0.06%) to 98.847% when pulling fc400ba on jae/bucket into 5d0cf20 on master.

@jaeopt jaeopt merged commit 397d8b5 into master Sep 22, 2020
@jaeopt jaeopt deleted the jae/bucket branch September 22, 2020 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants