You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/02/01 09:39:53 UTC

[dubbo-go] branch revert-1022-feature/fixConsul updated (890953e -> 9b007f0)

This is an automated email from the ASF dual-hosted git repository.

alexstocks pushed a change to branch revert-1022-feature/fixConsul
in repository https://gitbox.apache.org/repos/asf/dubbo-go.git.


    from 890953e  Revert "Fix: consul security problem"
     add 150a89f  #901 Optimize the memory usage.
     add 0ff136d  add unit test and keep origin SetParams method
     add 240695c  Merge branch 'develop' of github.com:apache/dubbo-go into apache_develop
     add 85eadf4  chane RangeParams to GetParams
     add 29e6cff  #901 Optimize the memory usage.
     add 08a13cf  fix comments issue
     add 0d9d7c0  Add: golint in github action
     add c7fd69a  fix path
     add c593464  fix ut
     add f7995eb  Merge remote-tracking branch 'apache/master' into fix-path
     add ab774b5  Merge pull request #914 from fangyincheng/fix-path
     add 527d3b8  1 code clean; 2 fix tag name
     add 0249c47  Merge branch 'develop' into read
     add bb7bf3e  Merge branch 'develop' into read
     add c4fa94c  fix url compare in consul listener
     add b5365b3  Merge pull request #911 from dubbo-x/read
     add e2954fe  Merge branch 'develop' of https://github.com/apache/dubbo-go into develop
     add 4d50436  update lint pos in github action
     add 3053a22  fix #750.  1.fix empty ServiceEvent, we should clear all invokers 2.we want to notify the address with complete address list.
     add fa94763  add test for clear all address
     add c3aac14  fix nacos test
     add 2a6c0a1  fix nacos test
     add 94496c5  fix review issue: add constraint of Action value of ServiceEvent in NotifyAll func
     add eb1b730  Merge branch 'develop' of github.com:apache/dubbo-go into notify_all
     add 6053327  fix #750.  1.fix unit test
     add b90bb44  Merge branch 'develop' of github.com:apache/dubbo-go into notify_all
     add 3389b38  fix: if the registry center notify address list, it cannot remove invoker list from cache
     add 634e8d2  enhance the refresh func
     add 45c926b  remove doc
     add 5f31e3a  enhance the refresh func
     add 0c94049  Merge branch 'develop' of github.com:apache/dubbo-go into notify_all
     add d5ffb62  add some debug log
     add 2757a1a  use goroutine to destroy invoker
     add 51ee140  Merge branch 'develop' of github.com:apache/dubbo-go into notify_all
     add 60f53ab  fix merge issue and optimize some invalid usage
     add f4d5df2  fix log error
     add 068505d  refactor some code
     add 5ffcdfe  fix review issue
     add a136af5  Merge branch 'develop' of github.com:apache/dubbo-go into notify_all
     add af608d8  trigger init router for first call
     add a5bd416  Revert "trigger init router for first call"
     add 0cb6305  Merge branch 'notify_all' of github.com:cvictory/dubbo-go into notify_all
     add cfef02a  Merge pull request #758 from cvictory/notify_all
     add 8dffc29  Merge branch 'develop' of https://github.com/apache/dubbo-go into develop
     add ce90b4b  Optimize the memory usage (#916)
     add 30730a3  Merge branch 'develop' of github.com:apache/dubbo-go into apache_develop
     add 5683e9f  fix: fix URL.String() lock
     add f244915  Merge pull request #944 from georgehao/develop
     add b8f21c4  Merge branch 'develop' of github.com:apache/dubbo-go into apache_develop
     add ad8a8ad  fix metadata report fail
     add b2b70d2  fix metadata report fail
     add 5a7f093  make metadata report work without serviceDiscovery
     add 62bdc06  Impl: support extension of two urls comparison.
     add 83d0578  optimize get url with pointer type
     add f4ce65e  Fix review Issue: rename the struct and remove some code.
     add 6ab25e4  change from URLComparator interface to Func
     add 0d7baa5  add nil check for IsEquals in url.go
     add 2f432d5  Merge branch 'develop' of github.com:apache/dubbo-go
     add 04fa9b0  Merge pull request #945 from fangyincheng/fix-object
     add 93932e1  Merge branch 'develop' of github.com:apache/dubbo-go into local_optimize_equals_urls
     add f734264  Merge pull request #854 from cvictory/local_optimize_equals_urls
     add 551b073  expose invoker from proxy
     add 45cfa0a  expose proxy from referenceConfig
     add 99a0253  Merge pull request #952 from cvictory/feature/proxy_expose_invoker
     add 75713b9  introduce ConfigPostProcessor extension
     add 01684bf  correct license header
     add 52405be  break import cycle
     add f7938a3  use map instead of point of map
     add 78b29c7  use interface{} instead of concrete type
     add afab2dc  enhance comments
     add 8789da2  use url.Values as parameter, which should be sufficient enough
     add 95432d1  use common.URL as parameters
     add f8c8593  Merge pull request #943 from beiwei30/config-post-processor
     add b4f304e  introduce DelParam so that it is possible to remove one particular parameter
     add 244b495  Merge pull request #954 from beiwei30/del-key-from-url
     add da3d9fc  introduce a export flag to decide if a service should be export or not, it is particularly useful with a config-post-processor
     add ea5e28b  Merge branch 'develop' into export-flag
     add 59d4e4e  set export to true as default value when unmarshal
     add ed97c95  Merge pull request #955 from beiwei30/export-flag
     add 9fa3896  add WithParameterTypeNames in Invocation
     add 766c2ca  fix review issue: use copy value
     add 0ecbcef  fix review issue: use copy value
     add de2dad9  Merge pull request #950 from cvictory/feature/parameterTypes2
     add 44f7199  fix the wrong judgment in rpc result error
     add 8aba190  Merge pull request #958 from yakecanlee/feature/fix-tracing-filter
     add 7906db6  upgrade sentinel-golang version
     add 65c8998  upgrade sentinel version to v1.0.1
     add 61737f8  update go mod
     add 677d7e8  delete ding notify module in github action yaml
     add c145691  Merge pull request #970 from apache/feature/sentinel1.1
     add ba7eab7  fix: fix merge conflict
     add 668e085  fix errors by linter
     add e308e19  Merge pull request #974 from apache/imp/linter1
     add 9ae3c90  Merge remote-tracking branch 'upstream/develop' into develop
     add 4a0c97f  ftr: add grpc ctx transfer support
     add 35d31fe  fix: fix go fmt
     add 425c03f  Merge pull request #975 from LaurenceLiZhixin/Ftr/grpc-ctx-meta
     add bdd3546  add liner for github action script
     add 2e1e474  delete unused variable
     add 8884462  fix lint errors
     add 1253721  fix common linter error
     add 407d234  fix config linter error
     add 36129b9  fix filter linter error
     add 69026e8  fix protocol linter error
     add 971c854  fix registry error
     add a08392c  fix remoting linter error
     add 8eb6107  upgrade nacos-sdk-go version
     add b4accad  upgrade nacos-sdk-go version
     add 2acf10a  fix remoting linter error
     add ca71862  delete unused var
     add 9e40791  fix ctx linter error
     add f11f1f9  fix duplicate error
     add 93453e4  feat: move task pool to endpoint layer
     add c46d479  feat: update getty to 1.4.1
     add 006e4a5  fix: resolving code conflicts
     add ba96f44  fix: upgrade sentianel version to 0.6.2
     add 1cc462b  update version getty/1.4.1 and gost/1.10.1
     add d6bf494  fix for ut error
     add 1c1c7d3  fix: resolve conflict
     add 8d0ccff  fix: ut error
     add ded3c49  Merge pull request #879 from watermelo/opt_taskpool
     add 9ef971c  fix duplicate error
     add 780a05c  fix client error message
     add 96a6c30  fix client error message
     add 838c847  Merge pull request #983 from yakecanlee/feature/fix-client-timeout-error-message
     add 34fa1da  delete travis script
     add 85a21e8  Merge branch 'develop' into develop
     add e633a73  Merge pull request #981 from lzp0412/develop
     add a2df3f1  fix: consul unregister bug
     add 66b5283  Merge branch 'develop' into fix/consulUnreg
     add 3cb769a  fix: go fmt project
     add 56f23ed  fix: fix conflict
     add 0960b23  fix: change trigger
     add 082a0bd  fix: fix lint
     add 374a01a  Merge pull request #973 from LaurenceLiZhixin/fix/consulUnreg
     add c8fb3e9  fix conflict
     add 837cda3  file system run successful in win
     add 3de6c8a  Merge branch 'develop' into feature/fix-config_center-file
     add 55e861a  resolve
     add cc7fb2e  rm chinese comment
     add 794ab77  Merge pull request #932 from cityiron/feature/fix-config_center-file
     add 5cb723a  update hessian2 version to v1.8.2
     add f6e0db0  Merge branch 'develop' of github.com:apache/dubbo-go into fix/metadata_fail
     add bfbe4e9  fix review issue
     add b21ce4e  fix review issue
     add 8e0aa32  build(deps): bump github.com/apache/dubbo-go-hessian2
     add af6b6c0  Merge pull request #918 from apache/dependabot/go_modules/github.com/apache/dubbo-go-hessian2-1.8.0
     add 2b8d962  Upgrade sentinel go to v1.0.1
     add a5ea0d8  Merge pull request #968 from louyuting/20201224-upgrade-sentinel
     add b353ac9  merge develop
     add 41fd617  Merge branch 'develop'
     add 5d6b250  Merge branch 'develop'
     add 92389d2  Merge branch 'develop'
     add aaacf31  Bump github.com/stretchr/testify from 1.6.1 to 1.7.0
     add 982e74c  Merge pull request #1001 from apache/dependabot/go_modules/develop/github.com/stretchr/testify-1.7.0
     add 7dd17b3  Bump github.com/alibaba/sentinel-golang from 1.0.1 to 1.0.2
     add 4a721a2  Merge pull request #999 from apache/dependabot/go_modules/develop/github.com/alibaba/sentinel-golang-1.0.2
     add 36c0681  Imp: add trim for filter
     add 016bcce  update hessian2 version to v1.8.2
     add 3111854  merge develop
     add 9c40c29  Merge pull request #1003 from fangyincheng/trim-filter
     add 0cb6edb  add dmall logo
     add f354f90  Merge pull request #1009 from champly/develop
     add c1f25f6  Merge branch 'develop'
     add 808370a  Enable Nacos registry local cache
     add 2b559fc  Merge remote-tracking branch 'origin/master'
     add 6288e18  avoid cache effect event, just for test
     add bbd698d  Enable Nacos registry local cache
     add c81fde1  Enable Nacos registry local cache
     add c26d24d  Enable Nacos registry local cache
     add 17825e9  remove unnecessary constant.NACOS_NOT_LOAD_LOCAL_CACH
     add a3bc853  Merge pull request #989 from mark4z/master
     add 109d1dc  Use nacos constant instead of hardcoded string
     add 9d5dc61  Merge pull request #996 from luckyxiaoqiang/feature/refactor_nacos_registry
     add d136504  Merge branch 'master' of https://github.com/apache/dubbo-go
     add 9a666eb  add community info
     add 9a980ff  Merge branch 'develop' into fix/metadata_fail
     add 6c989b9  Merge pull request #948 from cvictory/fix/metadata_fail
     add fec0532  fix integration test
     add 43b931e  add more test
     add a7abcc1  add more test
     add bbda967  add more test
     add 80ee534  add test
     add 92a6231  add test
     add 882930c  add commit hash
     add ec2a259  Merge pull request #1012 from zouyx/feature/fixIntegrationTest
     add 3907104  Fix: issue #951 etcd exit panic
     add dd1b395  Fix: remove comments
     add 9130466  Merge pull request #1013 from watermelo/fix_etcd_register_error
     add c3d2177  Bump github.com/mitchellh/mapstructure from 1.4.0 to 1.4.1
     add 27d7746  Merge pull request #1017 from apache/dependabot/go_modules/develop/github.com/mitchellh/mapstructure-1.4.1
     add 0b38e93  Bump github.com/nacos-group/nacos-sdk-go from 1.0.3 to 1.0.5
     add d6941b2  Merge pull request #1016 from apache/dependabot/go_modules/develop/github.com/nacos-group/nacos-sdk-go-1.0.5
     add 4f9b8d9  Bump github.com/dubbogo/gost from 1.10.1 to 1.11.0
     add 17c4a9e  Merge pull request #1015 from apache/dependabot/go_modules/develop/github.com/dubbogo/gost-1.11.0
     add e49d2f2  resolve confict
     add d2a40aa  Merge pull request #1015 from apache/dependabot/go_modules/develop/github.com/dubbogo/gost-1.11.0
     add 9c3ee3a  fix panic when connect to provider fail
     add bfa9f5f  fix panic when close pool
     add 5c76040  Merge pull request #1021 from wenxuwan/newestVersion
     add 8b2351b  Merge branch 'develop' into feature/1.5.6
     add 17763bf  update go mod
     add fd90e20  fmt
     add 55b1e4b  resolve consul
     add c01cea2  Merge pull request #1024 from cityiron/feature/1.5.6
     add 9b007f0  Merge branch '1.5' into revert-1022-feature/fixConsul

No new revisions were added by this update.

Summary of changes:
 .github/workflows/github-actions.yml               |  53 +---
 .golangci.yml                                      |  63 +++++
 .travis.yml                                        |  28 --
 NOTICE                                             |   2 +-
 README.md                                          |  35 ++-
 README_CN.md                                       |  42 +--
 cluster/cluster_impl/failback_cluster_invoker.go   |  10 +-
 cluster/loadbalance/random_test.go                 |   3 +
 cluster/router/chain/chain.go                      |   6 +-
 cluster/router/chain/chain_test.go                 |  39 ++-
 cluster/router/condition/app_router_test.go        |  21 +-
 cluster/router/condition/file_test.go              |   9 +
 cluster/router/condition/listenable_router.go      |   4 +-
 cluster/router/condition/router.go                 |  11 +-
 cluster/router/condition/router_test.go            |   2 +
 .../healthcheck/default_health_check_test.go       |   3 +
 cluster/router/tag/file.go                         |   2 +-
 cluster/router/tag/router_rule.go                  |  18 +-
 cluster/router/tag/tag_router.go                   |   4 +-
 cluster/router/tag/tag_router_test.go              |   8 +-
 common/config/environment.go                       |   4 +-
 common/constant/key.go                             |  18 +-
 .../{loadbalance.go => config_post_processor.go}   |  28 +-
 common/extension/metadata_service.go               |  17 ++
 common/logger/logger.go                            |   5 +-
 common/proxy/proxy.go                              |  14 +-
 common/proxy/proxy_test.go                         |   8 +-
 common/rpc_service.go                              |  10 +-
 common/rpc_service_test.go                         |  13 +-
 common/url.go                                      | 127 ++++++---
 common/url_test.go                                 | 110 +++++++-
 common/yaml/yaml_test.go                           |   2 +-
 config/application_config.go                       |   5 +-
 config/base_config.go                              |   6 +-
 config/base_config_test.go                         |   5 +-
 config/config_center_config.go                     |  13 +-
 config/config_loader.go                            |   4 +-
 config/config_loader_test.go                       |  20 +-
 config/consumer_config.go                          |   5 +-
 .../interfaces/config_post_processor.go            |  19 +-
 config/method_config.go                            |   5 +-
 config/provider_config.go                          |   5 +-
 config/reference_config.go                         |  30 ++-
 config/registry_config.go                          |   5 +-
 config/registry_config_test.go                     |   5 +-
 config/service_config.go                           |  32 ++-
 config/service_config_test.go                      |   3 +-
 config_center/apollo/impl.go                       |   5 +-
 config_center/apollo/impl_test.go                  |  10 +-
 config_center/apollo/listener.go                   |   2 +-
 config_center/file/impl.go                         | 112 +++++---
 config_center/file/impl_test.go                    |   4 +
 config_center/nacos/client.go                      |   6 +-
 config_center/nacos/impl_test.go                   |   7 +-
 config_center/nacos/listener.go                    |   9 +-
 config_center/zookeeper/impl.go                    |   2 +-
 config_center/zookeeper/impl_test.go               |  23 +-
 doc/pic/misc/dubbogo-dingding.png                  | Bin 0 -> 39890 bytes
 filter/access_key.go                               |   2 +-
 filter/filter.go                                   |   1 +
 filter/filter_impl/access_log_filter_test.go       |   2 +-
 filter/filter_impl/active_filter_test.go           |   4 +-
 filter/filter_impl/auth/default_authenticator.go   |   2 +-
 .../filter_impl/auth/default_authenticator_test.go |   9 +-
 filter/filter_impl/auth/sign_util.go               |  10 +-
 filter/filter_impl/execute_limit_filter.go         |   2 +-
 filter/filter_impl/execute_limit_filter_test.go    |   6 +-
 filter/filter_impl/generic_service_filter_test.go  |   4 +-
 .../filter_impl/graceful_shutdown_filter_test.go   |   9 +-
 filter/filter_impl/seata_filter.go                 |   9 +-
 filter/filter_impl/seata_filter_test.go            |   2 +-
 filter/filter_impl/sentinel_filter.go              |  44 +++-
 filter/filter_impl/sentinel_filter_test.go         |   6 +-
 filter/filter_impl/token_filter_test.go            |   8 +-
 .../tps/tps_limit_sliding_window_strategy.go       |   2 +-
 .../tps/tps_limiter_method_service_test.go         |   8 +-
 filter/filter_impl/tps_limit_filter_test.go        |   6 +-
 filter/filter_impl/tracing_filter.go               |   2 +-
 filter/filter_impl/tracing_filter_test.go          |   2 +-
 go.mod                                             |  19 +-
 go.sum                                             | 284 +++------------------
 integrate_test.sh                                  |  16 +-
 .../mapping/dynamic/service_name_mapping_test.go   |   1 +
 metadata/report/consul/report_test.go              |   4 +-
 metadata/report/delegate/delegate_report.go        |  23 +-
 metadata/report/delegate/delegate_report_test.go   |  22 +-
 metadata/report/etcd/report_test.go                |   5 +-
 metadata/report/nacos/report_test.go               |  13 +
 metadata/report/zookeeper/report_test.go           |   5 +-
 metadata/service/inmemory/service_proxy.go         |  10 +-
 metadata/service/inmemory/service_proxy_test.go    |  40 ++-
 metadata/service/inmemory/service_test.go          |  41 ++-
 metadata/service/remote/service.go                 |  40 ++-
 metadata/service/remote/service_proxy.go           |   2 +-
 metadata/service/remote/service_proxy_test.go      |  34 ++-
 metadata/service/remote/service_test.go            |   2 +-
 metrics/prometheus/reporter.go                     |   4 +-
 metrics/prometheus/reporter_test.go                |   1 +
 metrics/reporter.go                                |   1 +
 protocol/dubbo/dubbo_codec.go                      |  10 +-
 protocol/dubbo/dubbo_invoker_test.go               |   2 +-
 protocol/dubbo/dubbo_protocol.go                   |   4 +-
 protocol/dubbo/hessian2/const.go                   |  17 +-
 protocol/dubbo/hessian2/hessian_dubbo.go           |   8 +-
 protocol/dubbo/hessian2/hessian_dubbo_test.go      |   2 +
 protocol/dubbo/hessian2/hessian_request.go         |  30 ++-
 protocol/dubbo/hessian2/hessian_response.go        |  24 +-
 protocol/dubbo/impl/codec.go                       |   2 +-
 protocol/dubbo/impl/const.go                       |  17 +-
 protocol/dubbo/impl/hessian.go                     |  37 ++-
 protocol/dubbo/opentracing.go                      |   8 -
 protocol/grpc/grpc_invoker.go                      |   2 +-
 protocol/grpc/protoc-gen-dubbo/main.go             |   2 +-
 .../grpc/protoc-gen-dubbo/plugin/dubbo/dubbo.go    |  16 +-
 protocol/invocation.go                             |   2 +
 protocol/invocation/rpcinvocation.go               |  24 +-
 protocol/jsonrpc/http.go                           |  24 +-
 protocol/jsonrpc/http_test.go                      |   2 +-
 protocol/jsonrpc/json.go                           |  12 +-
 protocol/jsonrpc/jsonrpc_invoker.go                |   5 +-
 protocol/jsonrpc/server.go                         |   8 +-
 protocol/protocolwrapper/mock_protocol_filter.go   |   1 -
 .../protocolwrapper/protocol_filter_wrapper.go     |   8 +-
 .../protocol_filter_wrapper_test.go                |   4 +-
 protocol/rest/server/rest_server.go                |   2 +
 registry/base_configuration_listener.go            |  12 +-
 registry/base_registry.go                          |   7 +-
 registry/consul/registry.go                        |  39 +--
 registry/consul/service_discovery.go               |  17 +-
 registry/consul/service_discovery_test.go          |   8 +-
 registry/consul/utils.go                           |   2 +-
 registry/consul/utils_test.go                      |  27 +-
 registry/directory/directory.go                    | 187 +++++++++-----
 registry/directory/directory_test.go               |  28 ++
 registry/etcdv3/listener.go                        |  10 +-
 registry/etcdv3/registry.go                        |  19 +-
 registry/etcdv3/service_discovery.go               |  17 +-
 registry/event.go                                  |  29 ++-
 .../event_publishing_service_deiscovery_test.go    |   2 +-
 .../event/event_publishing_service_discovery.go    |   2 +-
 registry/file/service_discovery.go                 |  14 +-
 registry/file/service_discovery_test.go            |  12 +-
 registry/kubernetes/listener_test.go               | 132 ----------
 registry/kubernetes/registry.go                    |  10 +-
 registry/kubernetes/registry_test.go               |   2 +-
 registry/mock_registry.go                          |  76 ++++--
 registry/nacos/listener.go                         |   4 +-
 registry/nacos/registry.go                         |  14 +-
 registry/nacos/registry_test.go                    |  47 +++-
 registry/nacos/service_discovery.go                |  11 +-
 registry/nacos/service_discovery_test.go           |   6 +-
 registry/protocol/protocol.go                      |  23 +-
 registry/registry.go                               |   7 +-
 registry/service_discovery.go                      |   2 +-
 registry/service_instance.go                       |   2 +-
 .../servicediscovery/service_discovery_registry.go |   6 +-
 .../service_discovery_registry_test.go             |   7 +-
 .../rest/rest_subscribed_urls_synthesizer.go       |   7 +-
 registry/zookeeper/registry.go                     |  17 +-
 registry/zookeeper/registry_test.go                |  77 +++---
 registry/zookeeper/service_discovery.go            |  14 +-
 registry/zookeeper/service_discovery_test.go       |  21 +-
 remoting/etcdv3/client.go                          |   4 +-
 remoting/etcdv3/client_test.go                     |   9 +-
 remoting/etcdv3/listener.go                        |   6 +-
 remoting/getty/dubbo_codec_for_test.go             |  10 +-
 remoting/getty/getty_client.go                     |  29 ++-
 remoting/getty/getty_client_test.go                |  10 +-
 remoting/getty/getty_server.go                     |  38 +--
 remoting/getty/listener.go                         |  16 +-
 remoting/getty/listener_test.go                    |   8 +-
 remoting/getty/opentracing.go                      |   8 -
 remoting/getty/pool.go                             |  85 +++---
 remoting/kubernetes/client.go                      |   8 +-
 remoting/kubernetes/client_test.go                 |   9 +-
 remoting/kubernetes/facade_test.go                 |   7 +-
 remoting/kubernetes/registry_controller.go         |   2 +-
 remoting/kubernetes/watch.go                       |  26 +-
 remoting/kubernetes/watch_test.go                  |   9 +-
 remoting/nacos/builder_test.go                     |   2 +
 remoting/zookeeper/client.go                       |  18 +-
 remoting/zookeeper/client_test.go                  |  25 +-
 remoting/zookeeper/facade_test.go                  |   6 +-
 remoting/zookeeper/listener.go                     |  20 +-
 remoting/zookeeper/listener_test.go                |   6 +-
 185 files changed, 1866 insertions(+), 1453 deletions(-)
 create mode 100644 .golangci.yml
 delete mode 100644 .travis.yml
 copy common/extension/{loadbalance.go => config_post_processor.go} (53%)
 copy common/proxy/proxy_factory.go => config/interfaces/config_post_processor.go (67%)
 create mode 100644 doc/pic/misc/dubbogo-dingding.png