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

blankensteiner pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-dotpulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 5c36705  Change default behaviour on MetaDataException (#90)
5c36705 is described below

commit 5c367052472e9e27b0185d386c3c673b5bdffa12
Author: Kristian Andersen <[email protected]>
AuthorDate: Tue Oct 12 09:41:57 2021 +0200

    Change default behaviour on MetaDataException (#90)
    
    Error occurs when tenant or namespace does not exist.
    org.apache.pulsar.broker.web.RestException: Policies not found for 
tenant/namespace namespace
---
 src/DotPulsar/Internal/DefaultExceptionHandler.cs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/DotPulsar/Internal/DefaultExceptionHandler.cs 
b/src/DotPulsar/Internal/DefaultExceptionHandler.cs
index a783827..c064153 100644
--- a/src/DotPulsar/Internal/DefaultExceptionHandler.cs
+++ b/src/DotPulsar/Internal/DefaultExceptionHandler.cs
@@ -45,7 +45,7 @@ namespace DotPulsar.Internal
                 TooManyRequestsException _ => FaultAction.Retry,
                 ChannelNotReadyException _ => FaultAction.Retry,
                 ServiceNotReadyException _ => FaultAction.Retry,
-                MetadataException _ => FaultAction.Retry,
+                MetadataException _ => FaultAction.Rethrow,
                 ConsumerNotFoundException _ => FaultAction.Retry,
                 ConnectionDisposedException _ => FaultAction.Retry,
                 AsyncLockDisposedException _ => FaultAction.Retry,

Reply via email to