-
Notifications
You must be signed in to change notification settings - Fork 667
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
Blacklist: remember the X-Request-ID #6427
Conversation
I'm a bit concerned about memory usage. Should we only keep the request id in case of faillure? |
@ogoffart yes, having a And I'd really like to have an option on the UI for inexperienced users (not savvy with sqlite commands) to fetch this info and send it to admins. |
Could avoid this by having the request ID be a crazy hash of the request, path, sync run iteration and PID and some other source. But maybe better not :-) |
Personally I've never used Storing in the blacklist is fine. But I am worried that we're spending a lot of work on a weak debugging tool. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks ok
sqlFail("updateBlacklistTableStructure: Add requestId", query); | ||
re = false; | ||
} | ||
commitInternal("update database structure: add errorCategory col"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
requestId
@ckamm about:
Main concerns I've heard are related to non-persistent-logs setups (user ends up with issues on the "Not Synced" tab but was not using logging). Then he can use those to help the admin/support to correlate and determine which request on the server logs (usually persistent) was responsible for the issue. cc/ @michaelstingl |
@SamuAlfageme Okay then. It's mostly that I've not personally been in a situation where correlating with server logs was useful and I wanted to understand where the need was coming from. |
@SamuAlfageme so where exactly do you want these ID to be stored? In which log? |
@ogoffart new column in |
@ogoffart on #6420 (comment) I thought on using sync journal's
|
@ogoffart merge this and potentially do a follow up PR? |
Issue #6420 Store the X-Request-ID in the SyncFileItem and also in the blacklist. Note that for consistency reason, the X-Request-ID is also in the SyncFileItem if the request succeeds. Currently there is no UI to access it, but it can be queried with sql commands
ˆˆ @SamuAlfageme FYI this is in now |
Issue #6420
Store the X-Request-ID in the SyncFileItem and also in the blacklist.
Note that for consistency reason, the X-Request-ID is also in the
SyncFileItem if the request succeeds.
Currently there is no UI to access it, but it can be queried with sql
commands