Skip to content

CluserInfo: Use Envoy::ProtobufTypes:String.#2648

Merged
dnoe merged 1 commit intoenvoyproxy:masterfrom
dnoe:import-string-fix
Feb 20, 2018
Merged

CluserInfo: Use Envoy::ProtobufTypes:String.#2648
dnoe merged 1 commit intoenvoyproxy:masterfrom
dnoe:import-string-fix

Conversation

@dnoe
Copy link
Contributor

@dnoe dnoe commented Feb 20, 2018

Due to mismatch between internal and external string types used by
protobuf the compiler was unable to deduce the type of this expression
used in ClusterInfoImpl constructor:

config.alt_stat_name().empty() ? name_ : config.alt_stat_name()

Make name_ an Envoy::ProtobufTypes:String to fix.

Testing: bazel test //test/...

Signed-off-by: Dan Noé dpn@google.com

Due to mismatch between internal and external string types used by
protobuf the compiler was unable to deduce the type of this expression
used in ClusterInfoImpl constructor:

config.alt_stat_name().empty() ? name_ : config.alt_stat_name()

Make name_ an Envoy::ProtobufTypes:String to fix.

Signed-off-by: Dan Noé <dpn@google.com>
Copy link
Member

@htuch htuch left a comment

Choose a reason for hiding this comment

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

Yuk.

@dnoe
Copy link
Contributor Author

dnoe commented Feb 20, 2018

Got error while creating host: instance not ready yet: pending
We had an unexpected error preparing a VM for this build, potentially due to our infrastructure or cloud provider.  Please retry the build in a few minutes.

:( Is there any way to retrigger just the release build?

@dnoe dnoe merged commit 15517ec into envoyproxy:master Feb 20, 2018
dnoe added a commit to dnoe/envoy that referenced this pull request Feb 21, 2018
The previous fix in envoyproxy#2648
causes 29 tests to segfault when run with internal string variant (but
works fine externally). This version of the fix works fine, all tests
pass with all protobuf versions. But why?

Testing: bazel test //test/...
and the: blaze equivalent internally.

Signed-off-by: Dan Noé <dpn@google.com>
htuch pushed a commit that referenced this pull request Feb 21, 2018
The previous fix in #2648
causes 29 tests to segfault when run with internal string variant (but
works fine externally). This version of the fix works fine, all tests
pass with all protobuf versions. But why?

Testing: bazel test //test/...
and the: blaze equivalent internally.

Signed-off-by: Dan Noé <dpn@google.com>
jpsim pushed a commit that referenced this pull request Nov 28, 2022
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: JP Simard <jp@jpsim.com>
jpsim pushed a commit that referenced this pull request Nov 29, 2022
Signed-off-by: Ryan Northey <ryan@synca.io>
Signed-off-by: JP Simard <jp@jpsim.com>
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.

2 participants