You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2020/12/15 03:50:12 UTC

[GitHub] [dubbo-go] beiwei30 opened a new issue #939: metadata report doesn't work

beiwei30 opened a new issue #939:
URL: https://github.com/apache/dubbo-go/issues/939


   <!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
   
   -->
   
   
   **What happened**:
   
   Use https://github.com/apache/dubbo-go-samples/tree/master/general/dubbo/go-server as an example:
   
   1. edit "conf/server.yml":
   
   ```diff
   diff --git a/general/dubbo/go-server/cmd/server.go b/general/dubbo/go-server/cmd/server.go
   index 8c12a69..8913fb7 100644
   --- a/general/dubbo/go-server/cmd/server.go
   +++ b/general/dubbo/go-server/cmd/server.go
   @@ -35,6 +35,7 @@ import (
    	_ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
    	"github.com/apache/dubbo-go/config"
    	_ "github.com/apache/dubbo-go/filter/filter_impl"
   +	_ "github.com/apache/dubbo-go/metadata/report/zookeeper"
    	_ "github.com/apache/dubbo-go/protocol/dubbo"
    	_ "github.com/apache/dubbo-go/registry/protocol"
    	_ "github.com/apache/dubbo-go/registry/zookeeper"
   diff --git a/general/dubbo/go-server/conf/server.yml b/general/dubbo/go-server/conf/server.yml
   index af90434..faa8853 100644
   --- a/general/dubbo/go-server/conf/server.yml
   +++ b/general/dubbo/go-server/conf/server.yml
   @@ -7,6 +7,17 @@ application:
      module: "dubbo-go user-info server"
      version: "0.0.1"
      environment: "dev"
   +  metadataType: "remote"
   +
   +metadata_report:
   +  protocol: "zookeeper"
   +  remote_ref: "zookeeper"
   +
   +remote:
   +  "zookeeper":
   +    protocol: "zookeeper"
   +    address: "127.0.0.1:2181"
   +
    
    # registry config
    registries:
   ```
   
   2. edit "cmd/server.go":
   
   ```diff
   diff --git a/general/dubbo/go-server/cmd/server.go b/general/dubbo/go-server/cmd/server.go
   index 8c12a69..8913fb7 100644
   --- a/general/dubbo/go-server/cmd/server.go
   +++ b/general/dubbo/go-server/cmd/server.go
   @@ -35,6 +35,7 @@ import (
    	_ "github.com/apache/dubbo-go/common/proxy/proxy_factory"
    	"github.com/apache/dubbo-go/config"
    	_ "github.com/apache/dubbo-go/filter/filter_impl"
   +	_ "github.com/apache/dubbo-go/metadata/report/zookeeper"
    	_ "github.com/apache/dubbo-go/protocol/dubbo"
    	_ "github.com/apache/dubbo-go/registry/protocol"
    	_ "github.com/apache/dubbo-go/registry/zookeeper
   ```
   
   3. start general/dubbo/go-server in IDE, make sure ā€¯working directory" points to "general/dubbo/go-server", and config "environment" to "CONF_PROVIDER_FILE_PATH=conf/server.yml" in Intellij Idea's "Run/Debug Configurations"
   
   4. Observe https://github.com/apache/dubbo-go/blob/master/config/config_loader.go#L318, zookeeper's metadata reporter can be initialized successfully.
   
   5. However, breakpoint at https://github.com/apache/dubbo-go/blob/master/metadata/report/zookeeper/report.go#L55 will not stop, that means metadata report doesn't work.
   
   
   **What you expected to happen**:
   
   **How to reproduce it (as minimally and precisely as possible)**:
   
   **Anything else we need to know?**:
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Patrick0308 commented on issue #939: metadata report doesn't work without service-discovery

Posted by GitBox <gi...@apache.org>.
Patrick0308 commented on issue #939:
URL: https://github.com/apache/dubbo-go/issues/939#issuecomment-813022626


   Fixed by #948 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go] Patrick0308 closed issue #939: metadata report doesn't work without service-discovery

Posted by GitBox <gi...@apache.org>.
Patrick0308 closed issue #939:
URL: https://github.com/apache/dubbo-go/issues/939


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org