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

ES error: Limit of total fields [1000] has been exceeded #2612

Closed
1 of 17 tasks
abitmore opened this issue Jul 13, 2022 · 1 comment · Fixed by #2616
Closed
1 of 17 tasks

ES error: Limit of total fields [1000] has been exceeded #2612

abitmore opened this issue Jul 13, 2022 · 1 comment · Fixed by #2616

Comments

@abitmore
Copy link
Member

Bug Description

The develop branch is unable to sync if the es_objects plugin is enabled. Error message:

{"index":{"_index":"objects-proposal","_type":"_doc","_id":"1.10.69039","status":400,"error":{"type":"mapper_parsing_exception","reason":"failed to parse","caused_by":{"type":"illegal_argument_exception","reason":"Limit of total fields [1000] has been exceeded while adding new fields [11]"}}}}

It occurs on block 66225581. The operation that creates the proposal 1.10.69039 was

[22,{"fee":{"amount":991139,"asset_id":"1.3.0"},"fee_paying_account":"1.2.605792","expiration_time":"2022-02-18T07:32:57","proposed_ops":[{"op":[69,{"fee":{"amount":52501,"asset_id":"1.3.0"},"owner_account":"1.2.1802985","asset_type":"1.3.5883","balance":"10000000000","fee_rate":0,"max_duration_seconds":604800,"min_deal_amount":1000000,"enabled":true,"auto_disable_time":"2022-05-12T07:32:31","acceptable_collateral":[["1.3.5286",{"base":{"amount":1,"asset_id":"1.3.5883"},"quote":{"amount":10,"asset_id":"1.3.5286"}}],["1.3.5589",{"base":{"amount":1,"asset_id":"1.3.5883"},"quote":{"amount":1,"asset_id":"1.3.5589"}}]],"acceptable_borrowers":[],"extensions":[]}]}],"extensions":[]}]

According to ES docs(https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-settings-limit.html), the setting can be updated if really required,

index.mapping.total_fields.limit - The maximum number of fields in an index. Field and object mappings, as well as field aliases count towards this limit. The default value is 1000.

Impacts
Describe which portion(s) of BitShares Core may be impacted by this bug. Please tick at least one box.

  • API (the application programming interface)
  • Build (the build process or something prior to compiled code)
  • CLI (the command line wallet)
  • Deployment (the deployment process after building such as Docker, Travis, etc.)
  • DEX (the Decentralized EXchange, market engine, etc.)
  • P2P (the peer-to-peer network for transaction/block propagation)
  • Performance (system or user efficiency, etc.)
  • Protocol (the blockchain logic, consensus, validation, etc.)
  • Security (the security of system or user data, etc.)
  • UX (the User Experience)
  • Other (please add below)

Steps To Reproduce
Steps to reproduce the behavior (example outlined below):

  1. Execute API call '...'
  2. Using JSON payload '...'
  3. Received response '...'
  4. See error in screenshot

Expected Behavior
A clear and concise description of what you expected to happen.

Screenshots (optional)
If applicable, add screenshots to help explain process flow and behavior.

Host Environment
Please provide details about the host environment. Much of this information can be found running: witness_node --version.

  • Host OS: [e.g. Ubuntu 18.04 LTS]
  • Host Physical RAM [e.g. 4GB]
  • BitShares Version: [e.g. 2.0.180425]
  • OpenSSL Version: [e.g. 1.1.0g]
  • Boost Version: [e.g. 1.65.1]

Additional Context (optional)
Add any other context about the problem here.

CORE TEAM TASK LIST

  • Evaluate / Prioritize Bug Report
  • Refine User Stories / Requirements
  • Define Test Cases
  • Design / Develop Solution
  • Perform QA/Testing
  • Update Documentation
@abitmore
Copy link
Member Author

Addressed via #2616.

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

Successfully merging a pull request may close this issue.

1 participant