Skip to content
This repository has been archived by the owner on Apr 9, 2022. It is now read-only.

ReEnqueueMessage error occurs reason #52

Open
SarcoZ opened this issue May 21, 2020 · 1 comment
Open

ReEnqueueMessage error occurs reason #52

SarcoZ opened this issue May 21, 2020 · 1 comment

Comments

@SarcoZ
Copy link

SarcoZ commented May 21, 2020

private void ReEnqueueMessage(ProduceMessage message)
{
if (message.ExpirationDate < DateTime.UtcNow)
{
OnMessageExpired(message);
return;
}

        message.Partition = Partitions.None; // so that round robined msgs are re robined
        if (Post(message))
        {
            MessageReEnqueued(message.Topic);
        }
        else
        {
            _cluster.Logger.LogWarning(string.Format(
                "[Producer] Failed to reenqueue message, discarding message for topic '{0}'", message.Topic));
            OnMessageDiscarded(message);
        }
    }

when send more message,such as 1000000 messages,error occurrs in this function,the reason is?

@ychuzevi
Copy link
Contributor

Which error do you have? You mean the warning logged before discarding messages because they cannot be sent?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants