dubbo-go icon indicating copy to clipboard operation
dubbo-go copied to clipboard

[UPDATE] Restore the previously removed API for etcd/grpc compatibility/update

Open Alanxtl opened this issue 8 months ago • 3 comments

Description

The API / behavior was originally removed during the changes in:

  • https://github.com/dubbogo/gost/pull/131

Later, we found this caused downstream compatibility problems for Dubbo-Go:

  • apache/dubbo-go#3070

In particular, removing the grpc.WithBlock()-related behavior in gost affected the initialization semantics along this dependency chain:

dubbo-go -> gost -> etcd/clientv3 -> grpc

As discussed in #3070, this broke the expected behavior in the etcd registry path and caused unit test failures in Dubbo-Go.

Now the upstream etcd side has already updated the related implementation / discussion:

  • etcd-io/etcd#20910
  • https://github.com/etcd-io/etcd/issues/20910#issuecomment-4048775213

So I think it is time to add this API / behavior back in gost.

Motivation

The original removal was understandable at that time, but it introduced real downstream compatibility issues.

Since the upstream dependency has now moved forward, restoring this API / behavior would help downstream projects such as Dubbo-Go remove temporary compatibility workarounds and recover the expected client initialization semantics.

References

  • Original removal: https://github.com/dubbogo/gost/pull/131
  • Compatibility regression discussion: apache/dubbo-go#3070
  • Upstream etcd update: etcd-io/etcd#20910

Alanxtl avatar Mar 13 '26 03:03 Alanxtl

what should been done is to modify https://github.com/dubbogo/gost instead of dubbo-go repo. The api we deleted in https://github.com/dubbogo/gost/pull/131 and added back in https://github.com/dubbogo/gost/pull/134.

What should we do is to do extally the same as https://github.com/dubbogo/gost/pull/131

Alanxtl avatar May 06 '26 06:05 Alanxtl

could I try it?

NeverENG avatar May 06 '26 14:05 NeverENG

could I try it?

just go ahead~

CAICAIIs avatar May 06 '26 14:05 CAICAIIs