8000 Use frozen::unordered_map for ErrorMessages by goedderz · Pull Request #13496 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Use frozen::unordered_map for ErrorMessages #13496

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

Merged
merged 90 commits into from
Feb 10, 2021

Conversation

goedderz
Copy link
Member
@goedderz goedderz commented Feb 5, 2021

Scope & Purpose

As error codes and messages are known at compile time, it makes sense to save them in a compile-time map, rather than a runtime map.

  • 💩 Bugfix (requires CHANGELOG entry)
  • 🍕 New feature (requires CHANGELOG entry, feature documentation and release notes)
  • 🔥 Performance improvement
  • 🔨 Refactoring/simplification
  • 📖 CHANGELOG entry made

Backports:

  • No backports required
  • Backports required for: (Please specify versions and link PRs)

Testing & Verification

  • This change is a trivial rework / code cleanup without any test coverage.
  • The behavior in this PR was manually tested
  • This change is already covered by existing tests, such as (please describe tests).
  • This PR adds tests that were used to verify all changes:
    • Added new C++ Unit tests
    • Added new integration tests (e.g. in shell_server / shell_server_aql)
    • Added new resilience tests (only if the feature is impacted by failovers)
  • There are tests in an external testing repository:
  • I ensured this code runs with ASan / TSan or other static verification tools

http://jenkins.arangodb.biz:8080/job/arangodb-matrix-pr/13868/

goedderz and others added 30 commits January 21, 2021 15:10
…b/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…om:arangodb/arangodb into feature/small-result-with-external-error
…b/arangodb into feature/refactor-error-message-string-view
…om:arangodb/arangodb into feature/small-result-with-external-error
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
@goedderz goedderz added this to the devel milestone Feb 5, 2021
@goedderz goedderz requested a review from jsteemann February 5, 2021 14:57
@goedderz goedderz self-assigned this Feb 5, 2021
@goedderz
Copy link
Member Author
goedderz commented Feb 5, 2021

image

@goedderz
Copy link
Member Author
goedderz commented Feb 8, 2021

@goedderz
Copy link
Member Author
goedderz commented Feb 8, 2021

image

Base automatically changed from feature/strict-typing-for-error-codes to devel February 8, 2021 16:16
@goedderz
Copy link
Member Author

@goedderz
Copy link
Member Author

image

@jsteemann jsteemann merged commit eda85a9 into devel Feb 10, 2021
@jsteemann jsteemann deleted the feature/use-frozen-map-for-error-messages branch February 10, 2021 16:52
elfringham pushed a commit to elfringham/arangodb that referenced this pull request Apr 20, 2021
Co-authored-by: Jan <jsteemann@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0