Skip to content

Handle FB truncating batch#605

Open
dmitchell wants to merge 2 commits intoarsduo:masterfrom
dmitchell:dhm/truncated
Open

Handle FB truncating batch#605
dmitchell wants to merge 2 commits intoarsduo:masterfrom
dmitchell:dhm/truncated

Conversation

@dmitchell
Copy link

@dmitchell dmitchell commented Apr 17, 2017

Sometimes FB is responding with fewer than the submitted batch. I have been logging it for a while, and it seems to be a simple truncation. I've asked FB for confirmation and clarification. (My code often submits O(10^5) commands at a time.) I believe the truncation has to do w create commands.

I'm not sure how, for LIVE test, to disable the before :each allow.. and return() logic so that it really submits the request to FB.

Thanks for submitting a pull request to Koala! A huge portion of the gem has been built by awesome people (like you) from the Ruby community.

Here are a few things that will help get your pull request merged in quickly. None of this is required -- you can delete anything not relevant. If in doubt, open the PR! I want to help.

[x] My PR has tests and they pass!
[x] The live tests pass for my changes (LIVE=true rspec -- unrelated failures are okay).
[x] The PR is based on the most recent master commit and has no merge conflicts.

If you have any questions, feel free to open an issue or comment on your PR!

Note: Koala has a code of conduct. Check it out.

@dmitchell
Copy link
Author

Ah, I see some of the batch tests don't expect a response and thus don't mock it which is causing an infinite loop in the test. I'll fix that.

@benveniste
Copy link

Seems OK, but shouldn't Faceplant return a 207 on these?

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.

2 participants