Quantcast
Channel: Service Bus forum
Viewing all articles
Browse latest Browse all 1916

Java EventhubsProducer ServerBusyException handling

$
0
0

Hi,

I'm using the next Java Producer for sending messages to an Azure Event Hub:

Google:   "Get Started with Event Hubs in Java | Microsoft Azure" (by Elio Damaggio).


I'm using an Eventhub with 10 partitions and 10 Throughput Units.

The producer sends 6 Million small messages (<1KB).

I sometimes see errors on the Eventhubs Dashboard counters:

  *ServerBusyErrors together with num of messages smaller than the num of messages that I sent

  *ServerBusyErrors but with num of messages equal to the num of messages that I sent

  *Other types of errors.

The problem is that the Java Producer does not catch (or does not expose out) any exceptions when those errors occur (or probably I fail to understand how exactly should I catch those exceptions in code).

Could it be that maybe the producer get the ServerBusyErros, handles them by itself (re-send policy of some sort) and does not expose all that out to me? Because that may partly explain how come there are errors but all messages were received.

(Or, could it be that Eventhub itself successfully receives a message although it issues a ServerBusyError?)

By the way, how accurate and reliable ar those dashboard counters?



Viewing all articles
Browse latest Browse all 1916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>