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

"unexpected eof" in sui causes it to spin out of control #66

Open
erikh opened this issue Oct 2, 2023 · 6 comments
Open

"unexpected eof" in sui causes it to spin out of control #66

erikh opened this issue Oct 2, 2023 · 6 comments
Milestone

Comments

@erikh
Copy link
Owner

erikh commented Oct 2, 2023

Not sure what is causing this yet; I'm pretty sure something that's handling errors isn't doing it right, though.

@erikh
Copy link
Owner Author

erikh commented Oct 3, 2023

this is related to database size somehow. I am baffled.

@erikh
Copy link
Owner Author

erikh commented Oct 9, 2023

Something is causing the database size to grow at a phenomenal pace. One thing that might be related is the recurring primary key which even after the database is rebuilt grows at an astronomically fast pace, starting indexes on my personal account are around 30k (and they should be e.g. 1) so it tells me that there's an inner loop that is getting run without resulting in anything. This could be leading to a buildup of garbage in the DB that causes this issue.

@erikh
Copy link
Owner Author

erikh commented Oct 13, 2023

CPU usage during this period looks to be 2-3 cores worth of usage until the error is cleared. After that it subsides, but the database is huge. I'll look into it this weekend, but I'm fairly sure this is the primary key allocator doing something stupid.

@erikh
Copy link
Owner Author

erikh commented Oct 16, 2023

Ok, I think I have this dialed into when I modify things in google calendar directly (like moving an entry on my phone), and saturn or sui has to pick them up later.

@erikh
Copy link
Owner Author

erikh commented Nov 11, 2023

Actually, this is when sui cannot fulfill the api request. yay.

@erikh
Copy link
Owner Author

erikh commented Nov 26, 2023

After a lot more experimentation I still have not nailed this down. Best I can tell something in ciborium and the database size is causing it to partially load the db, which needs more investigation. Slating this for 0.5.0 because I want to get 0.4.4 out the door.

@erikh erikh added this to the 0.5.0 milestone Nov 26, 2023
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

1 participant