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

std::length_error #4

Closed
kaukas opened this issue May 7, 2013 · 7 comments
Closed

std::length_error #4

kaukas opened this issue May 7, 2013 · 7 comments
Labels

Comments

@kaukas
Copy link

kaukas commented May 7, 2013

During our batch imports redis-leveldb goes 100% CPU, not even a restart helps. Before that (or maybe unrelated - not sure) it throws a lot of these:

terminate called after throwing an instance of 'std::length_error'
  what():  basic_string::_S_create

I do not know any C/C++. How could I help debug this error?

@kaukas
Copy link
Author

kaukas commented May 7, 2013

Even if it is not using 100% CPU I get a lot of random ECONNRESET, EPIPE, timeout errors in a row.

@KDr2
Copy link
Owner

KDr2 commented May 30, 2013

@kaukas could you give me a script to reproduce this error? Then I'll try to fix it, Many thanks!

@kaukas
Copy link
Author

kaukas commented May 31, 2013

I had a Ruby script pushing data using the redis gem. All it did was use mset. I can't give example data though, it's private.

@KDr2
Copy link
Owner

KDr2 commented May 31, 2013

@kaukas

Oh, I know the reason, there is a limit of the data size in one single request, it is defined in src/rl.h:

#define READ_BUFFER 81920

Your mset request maybe too large, you can either split your request into small ones or enlarge the value of READ_BUFFER then recompile redis-leveldb, good luck.

@bitthegeek
Copy link

What operating system and on what architecture this issue happens on you?

@kaukas
Copy link
Author

kaukas commented Oct 22, 2013

I had this issue on Ubuntu 12.04 x64.

I apologize, will not be able to provide further details since we chose to use another tool for the task.

@KDr2
Copy link
Owner

KDr2 commented Nov 16, 2013

updated on #7 .

@KDr2 KDr2 closed this as completed Jan 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants