temporalio / temporal

Temporal service
https://docs.temporal.io
MIT License
10.3k stars 754 forks source link

Server incorrectly refuses DescribeHistoryHostRequest without Namespace set. #5933

Closed robholland closed 2 weeks ago

robholland commented 2 weeks ago

Expected Behavior

tdbg history-host describe --history-address <history-host-ip:port>

should print the history host description.

Actual Behavior

Error: Describe history host failed
Error Details: rpc error: code = InvalidArgument desc = Namespace not set on request.

Discussion on slack suggests this is a bug the frontend interceptors. I took a quick look, guessing it's here: https://github.com/temporalio/temporal/blob/main/common/rpc/interceptor/namespace_validator.go#L266

Steps to Reproduce the Problem

  1. tdbg history-host describe --history-address <history-host-ip:port>
  2. Observer error message instead of expected output

Specifications