-
Notifications
You must be signed in to change notification settings - Fork 220
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
Timeout for huge UfedChats #2304
Comments
In an example, a msgstore.db of 2.052 MB had 1.118.533 messages. It results in 545 messages / MB (disregarding other data in database). |
…parison with WhatsApp databases
Hi @aberenguel, thanks for reporting this and proposing a PR! I would like to suggest an alternative fix: just putting contentHandler.characters(""); in the loop that is taking most time into the parser should reset the timeout counter, if it works, it would require much less code changes. |
Great! I think
This specific chat has 3591 messages. |
Is it possible to get worker thread dump when TIMEOUT occurs? |
I think it is possible using JMS. |
@lfcnassif The suggestion of contentHandler.characters worked, with a little modification as bellow. If I pass empty string, the timeout counter is not reset. char[] nameChars = (message.getName() + "\n").toCharArray();
handler.characters(nameChars, 0, nameChars.length); It was caused by pre-processing messages in #2286. |
I think this issue can be closed. |
Thanks @aberenguel. So it doesn't happen in last release or master branch, right? |
Closing, but I would appreciate the answer for question above, thank you! |
I haven't seen that in master. Only in the branch I'm working. The contentHandler tip mentioned solved the problem |
I'm processing an UFDR that contais chats with ~50k messages.
That is triggering timeout in UfedChatParser.
Since we don't have bytes in ufed chat item stream, the timeout doesn't consider the size of the chat.
The text was updated successfully, but these errors were encountered: