Skip to content

Refactor Redis commands and connection pool#6149

Merged
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
HenryYYang:nico-trys-to-refactor-redis-but-less-ambitious
Mar 5, 2019
Merged

Refactor Redis commands and connection pool#6149
mattklein123 merged 4 commits intoenvoyproxy:masterfrom
HenryYYang:nico-trys-to-refactor-redis-but-less-ambitious

Conversation

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg
Copy link
Copy Markdown
Contributor

Simpler version of #6055. Will amend description/close other PR if this one passes coverage test without a strange bison/flex error.

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg force-pushed the nico-trys-to-refactor-redis-but-less-ambitious branch 2 times, most recently from fe379bb to 83197a4 Compare March 1, 2019 23:48
redis_cluster_proxy work.

Signed-off-by: Nicolas Flacco <nflacco@lyft.com>
@mattklein123
Copy link
Copy Markdown
Member

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg your actual error is:
Code coverage 97.3 is lower than limit of 97.5, somehow you lowered the coverage to below the threshold.

@mattklein123 mattklein123 self-assigned this Mar 4, 2019
Signed-off-by: Nicolas Flacco <nflacco@lyft.com>
@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg force-pushed the nico-trys-to-refactor-redis-but-less-ambitious branch from e10f89f to b7b78cb Compare March 4, 2019 20:02
Signed-off-by: Nicolas Flacco <nflacco@lyft.com>
@HenryYYang
Copy link
Copy Markdown
Contributor

+1

@FAYiEKcbD0XFqF2QK2E4viAHg8rMm2VbjYKdjTg
Copy link
Copy Markdown
Contributor Author

@mattklein123 don't know how I missed that in the bottom of the output there. In any case, it is fixed.

Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thanks looks good, just a few questions.

/wait

@@ -0,0 +1,40 @@
licenses(["notice"]) # Apache 2

# Redis proxy L4 network filter. Implements consistent hashing and observability for large redis
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you delete this comment as I don't think applies here now that it's common code?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

load(
"//test/extensions:extensions_build_system.bzl",
"envoy_cc_test",
"envoy_extension_cc_test_binary",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is not used, I would remove this entire load() and just import the normal envoy_cc_test from the normal build size bzl file.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done

EXPECT_EQ(0UL, buffer_.length());
}

TEST_F(RedisEncoderDecoderImplTest, BulkString) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Was this test missing? Why was this added?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This test is new- since a bunch of the other types are there, I figured I'd add it. In theory the array tests capture it; I think one could probably remove some of the other types and do them in the array tests too, but it reads nicer. I can remove if you prefer.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nope thanks for adding, just curious.

Signed-off-by: Nicolas Flacco <nflacco@lyft.com>
Copy link
Copy Markdown
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Thank you!

@mattklein123 mattklein123 merged commit 10b9398 into envoyproxy:master Mar 5, 2019
fredlas pushed a commit to fredlas/envoy that referenced this pull request Mar 5, 2019
Signed-off-by: Nicolas Flacco <nflacco@lyft.com>
Signed-off-by: Fred Douglas <fredlas@google.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.

4 participants