MINOR: Remove unused isSticky assert out from tests only do constrainedAssign#8788
Conversation
|
hi @ableegoldman , could you review this PR? Thanks. |
ableegoldman
left a comment
There was a problem hiding this comment.
Thanks @showuon ! This LGTM and I'm fine with merging as-is, but I'm wondering if we can improve on the stickiness verification instead of just removing it.
Granted, I think the check that we're removing (ie #isSticky) wasn't doing much in the way of stickiness verification to begin with. It would be nice to write a quick method in AbstractStickyAssignorTest that could validate the stickiness of an assignment. The challenge there is how to check the stickiness in a general fashion, since just checking the specific assignment that's produced will be really brittle and of course we'd have to assert the specific assignment of each test.
Just some thoughts I had while reading this, we don't need necessarily to solve the problem in this PR but it would be nice to replace the check we removed with a better one. Do you have any ideas?
|
Thanks for the comment, @ableegoldman . Yes, I agree we should improve the stickiness verification, but I haven't got a better idea for that so far. I've created a ticket to track it: For this PR, I also put the How do you think? |
ableegoldman
left a comment
There was a problem hiding this comment.
SGTM! Thanks for the patch
|
Retest this please. |
Suggested by @ableegoldman in #8778 (comment), remove the unused isSticky assert out from tests only do
constrainedAssign. I printed out the test name and which assign method used during tests. Below is the output. So, we can remove theisSticky()assertion from the tests usingconstrainedAssignmethod.In summary, total 9 tests were doing
assertTrue(assignor.isSticky())but usingconstrainedAssign. Thanks.Committer Checklist (excluded from commit message)