donnadionne
2bb20d25a4
Revert "ring_hash LB policy implementation ( #26285 )" ( #26303 )
...
This reverts commit c55c7c065e
.
4 years ago
donnadionne
c55c7c065e
ring_hash LB policy implementation ( #26285 )
...
* ring_hash LB policy (#25697 )
* Ring Hash Policy implementation
* Code review comment fixing
* Fixing code review comments.
* Code review comment fixing
* Fixing reconnect logic
* adding helper method for pick
* Holding on to ref to parent
* first attempt at calling AttemptToConnect
* Fixing state change
* Fixing code review comments
* Fixing the reconnect from channel watcher code
* Fixing the BUILD to include new policy
* Fixing major code review suggestion
* Fixing code review comments
* Fixing code review suggestions
* Initial 2 tests.
* Adding channel id case.
* Fixing code review comments.
* Small change to get the spread of backends
* Add header hashing tests
* Added more tests and debugging
* Fixing Header hash
* Added more tests
* cleanup
* removing debugs
* Fixing code review comments.
* code review fixing
* combining code and match design
* fixing code review comments.
* Fixed IDLE case
* Moving tests
* Fixing code review comments
* Adding more tests according to code review comments.
* Added tests with differetn types of weights
* Adding terminal policy case
* Remove hash_func as there is only 1
* Added nack invalid hash function
* Added NACK cases
* fixing build error
* fixing build
* small warning
* adding regex test
* Adding policy tests
* fixing warning
* fixing warning
* fixing code reivew comments.
* fixing IDLE case
* Code review comments.
* fixing code review comments
* Making a helper function
* fixing reattempt case
* Added afew more tests.
* Adding more tests
* Added backward compatible test
* FIxing the reattempt test
* Clean up
* fixing clang error
* fixing clang error
* Fix logic discovered during code review
* code review comments
* code review comments
* code review comment
* clean up tests
* fixing code review comments
* clean up tests
* Separated test
* Fixing test
* fixing test
* fixing clang error
* Addressing code review suggestions
* Fixing last bit of code review comments
* Fixing flaky tests
* Fixing last bit of code review comments
* clean debugs
* Remove a verbose log
* Relaxing deadline exceeded for 1st RPC until ring is optimized.
Making Hash more efficient for random case.
4 years ago
Mark D. Roth
467c0d742c
fix xds resolver to add XdsClient to channel args even on errors ( #26282 )
4 years ago
donnadionne
f36a31b6aa
Revert "ring_hash LB policy ( #25697 )" ( #26238 )
...
This reverts commit 2aefb26f5d
.
4 years ago
donnadionne
2aefb26f5d
ring_hash LB policy ( #25697 )
...
* Ring Hash Policy implementation
* Code review comment fixing
* Fixing code review comments.
* Code review comment fixing
* Fixing reconnect logic
* adding helper method for pick
* Holding on to ref to parent
* first attempt at calling AttemptToConnect
* Fixing state change
* Fixing code review comments
* Fixing the reconnect from channel watcher code
* Fixing the BUILD to include new policy
* Fixing major code review suggestion
* Fixing code review comments
* Fixing code review suggestions
* Initial 2 tests.
* Adding channel id case.
* Fixing code review comments.
* Small change to get the spread of backends
* Add header hashing tests
* Added more tests and debugging
* Fixing Header hash
* Added more tests
* cleanup
* removing debugs
* Fixing code review comments.
* code review fixing
* combining code and match design
* fixing code review comments.
* Fixed IDLE case
* Moving tests
* Fixing code review comments
* Adding more tests according to code review comments.
* Added tests with differetn types of weights
* Adding terminal policy case
* Remove hash_func as there is only 1
* Added nack invalid hash function
* Added NACK cases
* fixing build error
* fixing build
* small warning
* adding regex test
* Adding policy tests
* fixing warning
* fixing warning
* fixing code reivew comments.
* fixing IDLE case
* Code review comments.
* fixing code review comments
* Making a helper function
* fixing reattempt case
* Added afew more tests.
* Adding more tests
* Added backward compatible test
* FIxing the reattempt test
* Clean up
* fixing clang error
* fixing clang error
* Fix logic discovered during code review
* code review comments
* code review comments
* code review comment
* clean up tests
* fixing code review comments
* clean up tests
* Separated test
* Fixing test
* fixing test
* fixing clang error
* Addressing code review suggestions
* Fixing last bit of code review comments
* Fixing flaky tests
* Fixing last bit of code review comments
* clean debugs
* Remove a verbose log
4 years ago
Mark D. Roth
4c40ee3f78
move parse_address and sockaddr_utils out of iomgr directory ( #26077 )
...
* move parse_address and sockaddr_utils out of iomgr directory
* clang-format
* fix python
* fix for import
* fix build file for import
4 years ago
Alisha Nanda
1b26c897c1
Fix build failures in xds_end2end_test ( #26127 )
4 years ago
donnadionne
a994aad0b8
xds_end2end_test test infra: Eds Args refactoring and enhancing WaitForBackend ( #26093 )
...
* Refactoring EdsResourceArgs::Locality to have a vector of Endpoints:
port, health_status, and lb_weight.
As well, Adding RpcOption to WaitForBackend()
* Update WaitForBackend
* Modified WaitForBackend default param
* reuse SeenBackend
* Code review comments
* refactor WaitForAllBackend parameter list
* Fixing tests to ensure they are more strict;
Fixing test code according to code review comments.
* Fixing code review suggestions
* Increasing timeout for StressTest
4 years ago
Lidi Zheng
13e04b4b9c
Reduce xds_end2end_test's error tolerance to 0.05 ( #25738 )
...
* WIP sync API with 1.6k threads doesn't work
* Please don't fail
* Fix the tests
* Spread to DropTest
* Code clean-up and extend delay RPC timeout
* Address comments
* Address comments
* Deflake MSAN
* Make MSAN more robust && normal runs faster
* Address comments
* Remove the clock change in fault injection filter
* Polish comments && stricten the connection timeout
4 years ago
Yash Tibrewal
4768210ec8
s/OnServingStatusChange/OnServingStatusUpdate ( #26010 )
...
* s/OnServingStatusChange/OnServingStatusUpdate
* Update python files
4 years ago
Esun Kim
460898f11c
Migrated from grpc_error_string to grpc_error_std_string ( #26068 )
...
* Added grpc_error_std_string
* Migrated to grpc_error_std_string
4 years ago
Esun Kim
ca945a58e9
Introduced grpc_error_handle ( #25902 )
...
- Define grpc_error_handle
- Replace grpc_error* with grpc_error_handle
4 years ago
donnadionne
89f7e53dbc
Fixing flake in AllServerUnavailbleFailFast by increasing the RPC ( #26015 )
...
timeout from 1 second to 5: this ensures there is enough time for
communication with xDS server to get established.
4 years ago
Mark D. Roth
feff79abc7
add test-only channel arg to set per-channel xDS bootstrap config ( #25936 )
...
* pass XdsClient to LB policies via channel args
* add channel arg for overriding bootstrap config on a per-channel basis
* change tests to use new channel arg approach -- currently failing for server-side tests
* use the same channel args approach on the server side
* clang-format
* fix CircuitBreakingMultipleChannelsShareCallCounter test
* fix XdsEnabledServerTest test
* add TODO
* clang-format
* generate_projects
* fix clang-tidy
* fix build
* attempt to fix python
4 years ago
Lidi Zheng
3a19648100
Increase RPCs in fault injection tests ( #25984 )
4 years ago
Yash Tibrewal
8028cc874d
Reduce XdsServerFilterChainMatchTest flakiness ( #25956 )
4 years ago
Yash Tibrewal
3409eddcd1
xds-end2end-test server-side LDS updates cleanup ( #25906 )
4 years ago
Lidi Zheng
8eaaa3d7b6
Make ADS timeout increase from 500 to 2000 ( #25844 )
4 years ago
Yash Tibrewal
67886fbffa
xds_end2end_test ipv6 address format fix ( #25837 )
...
* xds_end2end_test ipv6 address format fix
* Update expected error string
4 years ago
Yash Tibrewal
da6cf22e29
Increase the retry count for XdsServerSecurityTest ( #25830 )
4 years ago
Yash Tibrewal
53ba4a101e
Implement FilterChainMatch algorithm ( #25757 )
...
* Implement FilterChainMatch logic
* Add tests for transport protocol too
* Tests for duplicate NACKing
* Introduce ConnectionManager as an interface for config fetchers
* Do not parameterize IncrementIfNonZero
* Some formatting
* Reviewer comments
* Add filter chain match information for duplicate match error
* Reviewer comments
* Some cleanup
* Reviewer comments
* Reviewer comments
* Reviewer comments
* Clang-tidy
4 years ago
donnadionne
4350d18d0f
Removing circuit_breaking and timeout environment variable guard to ( #25793 )
...
enable these features by default.
4 years ago
Lidi Zheng
4baf35f314
Remove fault injection environmental variable guard ( #25792 )
...
* Remove fault injection env guard
* Add the RejectsHttpFilterWithoutConfig test back
4 years ago
Lidi Zheng
1040fbdb9f
Re-introduce "CSDS Implementation" ( #25762 )
...
* Revert "Revert "CSDS Implementation (#25038 )" (#25745 )"
This reverts commit 98fd4e1e36
.
* Add xDS special Bazel build rules
* Add 2 todos to remove the added rules
4 years ago
Lidi Zheng
98fd4e1e36
Revert "CSDS Implementation ( #25038 )" ( #25745 )
...
This reverts commit 27de24a38e
.
4 years ago
donnadionne
26fd0ce3c9
Generating hash for ring_hash policy ( #25415 )
4 years ago
Lidi Zheng
27de24a38e
CSDS Implementation ( #25038 )
...
* Implement the xDS Config Dump as CSDS in Core
* Revemp the logic of caching and constructing the CSDS response
* Unref created error
* Fix the clang tidy complains
* Resolve comments about symbol preload and Json ctor
* Improve readability
* Merge with new ADS logic && support latest CSDS
* Refactor the version/client_status logic
* Add support for error_state
* Add support for does_not_exist
* Add node information
* Fix the ProtoBuf segfault
* More test cases
* Refactor to use bytes as cache instead of JSON
* Apply clang_tidy's suggestion
* Resolve reviewer's requests
* Tiny stylish fixes && make sanity test happy
* WIP: still working on the matchers
* Update a bunch of matchers
* Improve readability a bit
* Resolve reviewer's suggestions
* Resolve reviewer's comments
* Make Unpack fail fast
4 years ago
Yash Tibrewal
a622fe2c97
xDS LDS parsing changes: NACK on use_original_dst ( #25687 )
...
* xDS LDS parsing changes: NACK on use_original_dst
* Reviewer comments
* Unused variable
4 years ago
Yash Tibrewal
7021b72d1f
Revert Revert Xds Status Notifier ( #25718 )
...
* Revert "Revert "xDS status notifier (#25321 )" (#25702 )"
This reverts commit 3c9f3972e3
.
* Remove connection from map when OnClose is not registered
* Reviewer comments
4 years ago
Yash Tibrewal
3c9f3972e3
Revert "xDS status notifier ( #25321 )" ( #25702 )
...
This reverts commit 81e90432e1
.
4 years ago
Mark D. Roth
d2c2d66a03
xds: Ignore HTTP filters if LDS resource is v2. ( #25694 )
4 years ago
Lidi Zheng
e34b0a73c6
Fix a typo in fault injection ( #25693 )
4 years ago
Yash Tibrewal
e7536952a3
Filters parsing logic for servers ( #25609 )
...
* Filters parsing logic for servers
4 years ago
Yash Tibrewal
0e0bc355ce
xDS changes for server listener resource name template ( #24965 )
...
* xDS: Server listener resource name template changes
* Reviewer comments
4 years ago
Esun Kim
a41a206b8c
Fix readability-const-return-type,readability-delete-null-pointer,readability-simplify-boolean-expr ( #25628 )
4 years ago
Lidi Zheng
3b067c9f3f
Implement xDS client-side fault injection filter ( #24354 )
...
* Refactored with dynamic filters
* Error-tolerance tuned
* Fix leak of grpc_error and data race of canceller
* Adopt the latest xDS HTTP filter framework
* Fix fault injection tests' conflict with router filter
* Test alternative setup (override, no-override) without copy
* Refactor file strcutures of fault injection filter
* Rewrite the Json parsing/assembling logic again
* Added logic for aborting streaming RPC && resolve comments
4 years ago
Mark D. Roth
5d3fe59a5f
xds: Fix handling of HTTP filter that does not set typed_config. ( #25651 )
...
* xds: Fix handling of HTTP filter that does not set typed_config.
* same change for typed_per_filter_config
4 years ago
Yash Tibrewal
1c59e178f2
Some environments support only IPv6 addresses - followup from #25321 ( #25656 )
4 years ago
Yash Tibrewal
81e90432e1
xDS status notifier ( #25321 )
...
* Serving status notification for xds enabled servers
4 years ago
Mark D. Roth
49601b0334
Second attempt: xDS HTTP filter support for gRPC client ( #25558 )
...
* Revert "Revert "xDS HTTP filter support for gRPC client" (#25555 )"
This reverts commit 785a128a83
.
* xds_end2end_test: avoid flakes from lingering shutdown from previous test
4 years ago
Mark D. Roth
d482f1268a
xds_end2end_test: avoid flakes from lingering shutdown from previous test ( #25561 )
4 years ago
Mark D. Roth
013e339761
xds_end2end_test: improve TestType API ( #25557 )
4 years ago
donnadionne
785a128a83
Revert "xDS HTTP filter support for gRPC client" ( #25555 )
...
This reverts commit b2164837a8
.
4 years ago
donnadionne
1835f00ef1
Revert "Revert "Made grpc_core::Mutex compatible to absl::Mutex" ( #25537 )" ( #25549 )
...
This reverts commit 8e268dcec8
.
4 years ago
donnadionne
8e268dcec8
Revert "Made grpc_core::Mutex compatible to absl::Mutex" ( #25537 )
...
* Revert "Made grpc_core::Mutex compatible to absl::Mutex"
This reverts commit 0b53341328
.
* Revert "Added thread annotation (#25486 )"
This reverts commit 9d897cb1a5
.
* Revert "Fix a race in resolve_address and resolve_address_posix tests"
This reverts commit 6d8e7d3819
.
* Restore 25398
* restore 25398
4 years ago
Lidi Zheng
2efd2d5216
Fix a typo in xDS bootstrap parsing
4 years ago
Mark D. Roth
b2164837a8
xDS HTTP filter support for gRPC client
4 years ago
Esun Kim
0b53341328
Made grpc_core::Mutex compatible to absl::Mutex
4 years ago
Esun Kim
6dc1748f6c
Revert "Made grpc_core::Mutex compatible to absl::Mutex"
4 years ago
Esun Kim
6a1518bd22
Made grpc_core::Mutex compatible to absl::Mutex
4 years ago