Avoid using StringTable for runtime data.#1974
Avoid using StringTable for runtime data.#1974istio-merge-robot merged 4 commits intoistio:masterfrom ozevren:string-table
Conversation
mixer/pkg/il/evaluator/evaluator.go
Outdated
There was a problem hiding this comment.
I really don't like "cacheSize" as a name since it's ambiguous between "size in bytes" and "size in entries". maxCacheEntries is usually a better choice for this kind of name IMO.
There was a problem hiding this comment.
Noted. Hopefully, this will not survive very long, if I can land the CompiledExpression work soon.
|
@ozevren PR needs rebase |
…uation. This fixes the tainting of the StringMap problem.
This ensures that the method would not be called from any execution level context.
evaluator code. This is not needed anymore with use of heap for storing strings during evaluation.
Codecov Report
@@ Coverage Diff @@
## master #1974 +/- ##
==========================================
+ Coverage 79.81% 82.03% +2.22%
==========================================
Files 75 202 +127
Lines 6890 16819 +9929
==========================================
+ Hits 5499 13798 +8299
- Misses 1104 2530 +1426
- Partials 287 491 +204
Continue to review full report at Codecov.
|
|
Had to rebase. Can I get another /lgtm ? |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: geeknoid The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
/test istio-pilot-e2e |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue. |
What this PR does / why we need it:
This fixes an issue in the evaluator that causes runtime strings to be captured in the strings table. With this fix:
Which issue this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close that issue when PR gets merged): fixes #fixes #1369
Special notes for your reviewer:
This will most likely conflict with the pkg/server change. I'll wait until that one lands, before checking this in.
Release note: