-
Notifications
You must be signed in to change notification settings - Fork 649
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
ES_objects plugin does not delete data from ES #2464
Milestone
Comments
3 tasks
3 tasks
It seems the |
Fixed by #2570. |
|
17 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
See code:
bitshares-core/libraries/plugins/es_objects/es_objects.cpp
Lines 149 to 156 in 52ebad4
The code is buggy, because at first it tries to find the object from the (internal) object database via object ID, only if found, it then talks to (external) ES. But for objects which were removed from the object database, the first step will always return
nullptr
, as a result, the second step (remove_from_database()
) is not reachable, thus data will never be removed from ES.It could be a useful feature though. Some people may want to check removed data via ES.
If it's the case, the unreachable code can be removed, or be fixed by adding an explicit "do-not-remove" option.Thees-objects-keep-only-current
option exists for this purpose.Actually, by now, only proposals and limit orders are affected, because we don't delete other data. Limit orders in ES use a lot of disk space (
88.9 GB
at the time of writing). Proposals are29.8 MB
. I think it is better to have a dedicated option for each of them.Update: It seems the
es-objects-keep-only-current
option has more use than only deleting deleted objects. Actually it tracks every change, which can be used for tracking e.g. changes on price feeds. I still think it's better to have a dedicated parameter or a set of parameters for each object type.#808 is related.
Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.
CORE TEAM TASK LIST
The text was updated successfully, but these errors were encountered: