SimpleDistributionAgentQueueProcessor.java is responsible for processing a queueItem which is then passed on to RemoteDistributionPackageImporter#importPackage() which in turn selects a valid transporter and send the POST request through SimpleHttpDistributionTransport#deliverPackage(). There can be 2 types of exceptions thrown by this deliverPackage() function. One is a RecoverableDistributionException which is a type of DistributionException and another is DistributionException. As the name suggests, a RecoverableDistributionException is where the transport is tried again. But it seems there is currently no cap on the number of retries.
For example, if the endpoint is not accessible at the moment, the error logs of the caller application will be flooded with constant retries of the DistributionPackages in queue, until the endpoint comes up and the distribution is successful. The reason being, the verbose logging done here. This would lead to sharp increase in disk size of the caller application. Perhaps the logging can be less verbose and can be logged at WARN level for RecoverableDistributionException.