From 3509b29a51b462853f2594b4cc54924312f5aa33 Mon Sep 17 00:00:00 2001 From: Douglas Reid Date: Fri, 8 Feb 2019 16:29:15 -0800 Subject: [PATCH] Add flag indicating current semantics of report batch (#2111) * Add flag indicating current semantics of report batch * Fix Unit Test --- repositories.bzl | 4 ++-- src/istio/mixerclient/attribute_compressor.cc | 3 +++ src/istio/mixerclient/attribute_compressor_test.cc | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/repositories.bzl b/repositories.bzl index 6b9a1dde189..a8fe0ad77e1 100644 --- a/repositories.bzl +++ b/repositories.bzl @@ -99,8 +99,8 @@ cc_library( actual = "@googletest_git//:googletest_prod", ) -ISTIO_API = "aec9db9d9a57faf688b4d5606fddede85d4d3855" -ISTIO_API_SHA256 = "52a23e3453b0e639879e34365f9b80d0c7888851ed51034aad89268d4100e908" +ISTIO_API = "3094619c84733caef53723bfc96fa63ceb58cd57" +ISTIO_API_SHA256 = "f1fb0b79d4c6af4dda9cba1cbd76f8dd3be8a1c6e4d8341fc62f33d7a8d57e6c" def mixerapi_repositories(bind = True): BUILD = """ diff --git a/src/istio/mixerclient/attribute_compressor.cc b/src/istio/mixerclient/attribute_compressor.cc index 34c980ae35e..ec7a6af8353 100644 --- a/src/istio/mixerclient/attribute_compressor.cc +++ b/src/istio/mixerclient/attribute_compressor.cc @@ -140,6 +140,9 @@ class BatchCompressorImpl : public BatchCompressor { report_.add_default_words(word); } report_.set_global_word_count(global_dict_.size()); + report_.set_repeated_attributes_semantics( + mixer::v1:: + ReportRequest_RepeatedAttributesSemantics_INDEPENDENT_ENCODING); return report_; } diff --git a/src/istio/mixerclient/attribute_compressor_test.cc b/src/istio/mixerclient/attribute_compressor_test.cc index 614381bb16c..397905b0099 100644 --- a/src/istio/mixerclient/attribute_compressor_test.cc +++ b/src/istio/mixerclient/attribute_compressor_test.cc @@ -259,6 +259,7 @@ attributes { } default_words: "JWT-Token" global_word_count: 221 +repeated_attributes_semantics: INDEPENDENT_ENCODING )"; class AttributeCompressorTest : public ::testing::Test {