Skip to content

Conversation

@Mpdreamz
Copy link
Member

…a single bulk but leaves no slots to call MoveNext() which would free up an awaiting task. fixes #2771

Copy link
Contributor

@russcam russcam left a comment

Choose a reason for hiding this comment

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

LGTM - one very minor nitpick 😄


var funnelExact = producerBandwidth == bulkSize;
if (funnelExact)
throw new Exception("The back pressure settings are too conservative it provides enough documents for a single bulk but not enough room to advance "
Copy link
Contributor

Choose a reason for hiding this comment

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

minor pedantic punctuation nitpick:

The back pressure settings are too conservative. They provide enough documents for a single bulk but not enough room to advance ...

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 added

@Mpdreamz Mpdreamz force-pushed the fix/backpressure-reindex-exact branch from 2b98d44 to 292abd5 Compare June 21, 2017 08:47
Mpdreamz added 2 commits June 21, 2017 10:48
…a single bulk but leaves no slots to call MoveNext() which would free up an awaiting task. fixes #2771
@Mpdreamz Mpdreamz force-pushed the fix/backpressure-reindex-exact branch from 292abd5 to 1cdc825 Compare June 21, 2017 08:48
@Mpdreamz Mpdreamz merged commit 2e7022f into 5.x Jun 21, 2017
Mpdreamz added a commit that referenced this pull request Jun 21, 2017
#2781)

* Throw an exception when Reindex() produces just enough documents for a single bulk but leaves no slots to call MoveNext() which would free up an awaiting task. fixes #2771

* improved exception message when backpressure does not leave room for the producer to call MoveNext()
@Mpdreamz
Copy link
Member Author

Only needed to be backported to master

@Mpdreamz Mpdreamz deleted the fix/backpressure-reindex-exact branch June 21, 2017 08:55
awelburn pushed a commit to Artesian/elasticsearch-net that referenced this pull request Nov 6, 2017
elastic#2781)

* Throw an exception when Reindex() produces just enough documents for a single bulk but leaves no slots to call MoveNext() which would free up an awaiting task. fixes elastic#2771

* improved exception message when backpressure does not leave room for the producer to call MoveNext()
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.

4 participants