-
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
add additional checks to adaptor for live chain sync #1396
add additional checks to adaptor for live chain sync #1396
Conversation
Thanks for your hard work. Seeing you adding those I think it's better if you find all related fields and add them all. For example, |
IMO converting to a string is a bad fix. |
Ill try to find them all by following the ES logs. Service drops a failure each time one of this issues occur. Then we can try to do something better for some of them. |
Currently at block 21M and no mapping errors in the elasticsearch logs with the last commit. |
My server went down for maintenance overnight so i had to start over this morning. Currently in 21M blocks again and no errors. |
My node is now fully synced based on (most) of these changes. I did not have the two |
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.
just as an idea about next code here
Lines 249 to 272 in ff0629c
if (o.find("proposed_ops") != o.end()) | |
{ | |
o["proposed_ops"] = fc::json::to_string(o["proposed_ops"]); | |
} | |
if (o.find("initializer") != o.end()) | |
{ | |
o["initializer"] = fc::json::to_string(o["initializer"]); | |
} | |
if (o.find("policy") != o.end()) | |
{ | |
o["policy"] = fc::json::to_string(o["policy"]); | |
} | |
if (o.find("predicates") != o.end()) | |
{ | |
o["predicates"] = fc::json::to_string(o["predicates"]); | |
} | |
if (o.find("active_special_authority") != o.end()) | |
{ | |
o["active_special_authority"] = fc::json::to_string(o["active_special_authority"]); | |
} | |
if (o.find("owner_special_authority") != o.end()) | |
{ | |
o["owner_special_authority"] = fc::json::to_string(o["owner_special_authority"]); | |
} |
Thanks !
@cogutvalera i agree. I didn't know they were going to be that much to make something better. @pmconrad i found some hints about some of the new fields with problems. the case of
This is not supported by elasticsearch. Researching the others. |
similar issue with policy, example:
|
the
|
I think this can be merged as it is and open a new issue for code style and a possible way to insert some of those problematic fields. The information lost here is minimal and we know is fully working. I am interested on having a working version in Also to discuss, plugin need to be checked after new operations are added, could have an unsupported field. |
https://www.elastic.co/guide/en/elasticsearch/reference/current/array.html :
That sucks. I'm surprised this doesn't bite us more often, since all Ok for now, but we should change this in the next release IMO. E. g.
|
If you mean to change the overall jsonification, I disagree, because it may break all the clients. It's a big change so I'd rather live with the sucking one. If change ES only, then perhaps acceptable. |
I mean it sucks generally, but we should only adapt this for ES. |
Elasticsearch plugin with adaptor included at #1356 start to fail at around block 24M due to error:
This pull attempts to fix it, testing now. Will check the full logs of all ES looking for errors until sync.