Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused imports, fix bug #660

Merged
merged 1 commit into from May 15, 2018
Merged

Conversation

johnynek
Copy link
Collaborator

@ianoc can you review?

@@ -107,7 +101,7 @@ class ApproxHHTracker(hhPct: HeavyHittersPercent, updateFreq: UpdateFrequency, r

if (hh.containsKey(item)) {
val v = hh.get(item)
val newItemCount = +1L
val newItemCount = v + 1L
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ianoc can you double check this? This triggered a warning in scalac (which we ignored), but it looks like we intended to increment the count, but lost the v. What do you think?

I guess this means this cache was always pruning...

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch, yeah this change looks right/looks like a bug.

@ianoc-stripe
Copy link

lgtm

@codecov-io
Copy link

Codecov Report

Merging #660 into develop will decrease coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #660      +/-   ##
===========================================
- Coverage    89.44%   89.44%   -0.01%     
===========================================
  Files          113      113              
  Lines         8945     8959      +14     
  Branches       490      490              
===========================================
+ Hits          8001     8013      +12     
- Misses         944      946       +2
Impacted Files Coverage Δ
...n/scala/com/twitter/algebird/SummingIterator.scala 80% <ø> (ø) ⬆️
...main/scala/com/twitter/algebird/SummingCache.scala 100% <ø> (ø) ⬆️
...main/scala/com/twitter/algebird/SummingQueue.scala 100% <ø> (ø) ⬆️
...in/scala/com/twitter/algebird/scalacheck/Gen.scala 100% <ø> (+9.09%) ⬆️
...rc/main/scala/com/twitter/algebird/MonadLaws.scala 100% <ø> (ø) ⬆️
...cala/com/twitter/algebird/matrix/DenseMatrix.scala 0% <ø> (ø) ⬆️
...witter/algebird/util/summer/AsyncListMMapSum.scala 100% <ø> (ø) ⬆️
...twitter/algebird/scalacheck/ExpHistInstances.scala 100% <ø> (ø) ⬆️
...in/scala/com/twitter/algebird/macros/package.scala 88.88% <ø> (ø) ⬆️
.../main/scala/com/twitter/algebird/VectorSpace.scala 75% <ø> (ø) ⬆️
... and 18 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e45e654...bf84a4a. Read the comment docs.

@johnynek johnynek merged commit 01f989f into develop May 15, 2018
@johnynek johnynek deleted the oscar/fix_some_unused_warnings branch May 15, 2018 02:39
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.

None yet

3 participants