Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loading data in tikv gets stuck sometimes: batch is pushed when > size #162

Closed
matthewdarwin opened this issue Oct 2, 2020 · 2 comments
Closed

Comments

@matthewdarwin
Copy link

This is a followup to #161

Loading data into tikv gets stuck sometimes, and then may eventually work. The batches are sometimes too big.

The batch is pushed when > size, but we should probably detect if it would be > size, flush the current batch and then start a new one with the item.

@matthewdarwin
Copy link
Author

You get messages like this:

2020-10-01T21:36:01.277Z (statedb.js.live) source shutting down (blockstream/source.go:154){"error": "file source failed: process block failed: flushing if full: flushing batch set: unable to add table '\\x00' key \"\\xb0\\x00U1\\xb3\\\"\\xb4\\xa4B\\x10K\\xb1\\x9b\\xb8\\xfa˩0U1\\xb3\\\"\\xb4\\xa4B\\x10\\x00\\x00\\x00\\x00\\b\\xa1\\xf2\\xd1\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\" to tx: message:\"raft entry is too large, region 101282410, entry size 8553531\" raft_entry_too_large:<region_id:101282410 entry_size:8553531 > "}

@sduchesneau
Copy link
Contributor

fixed by @maoueh 204a47e

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

No branches or pull requests

2 participants