Skip to content

Conversation

@alexshtin
Copy link
Contributor

What changed?
Noisy integration tests errors are disappeared.

How did you test it?
Run tests.

Potential risks
No risks.

@alexshtin alexshtin requested a review from samarabbas August 3, 2020 20:14
Comment on lines -399 to -401
if err := h.grpcListener.Close(); err != nil {
h.logger.WithTags(tag.Error(err)).Error("failed to close gRPC listener")
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It turn out that when we close server it closed underlying listener itself, so this line always generated and error.

c.logger.Error("Error refreshing namespace cache", tag.Error(err))
time.Sleep(NamespaceCacheRefreshFailureRetryInterval)

if _, opened := <-c.shutdownChan; !opened {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exit immediately if error occured and shutdown channel is closed. For some reason (I don't quite understand why) it did stuck here before.

@alexshtin alexshtin merged commit d6b4e74 into temporalio:master Aug 4, 2020
@alexshtin alexshtin deleted the fix/namespace-cache branch August 4, 2020 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants