8000 Fixed production check, removed assertion by goedderz · Pull Request #11273 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

Fixed production check, removed assertion #11273

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 1 commit into from
Mar 16, 2020

Conversation

goedderz
Copy link
Member

Scope & Purpose

When orphan collections were provided to the gharial API as an array, but the elements weren't strings, in maintainer mode an assertion would trigger. The production check wasn't active, however, and would have led to a generic velocypack error.

This remove the assertion (because it can be triggered by using an external API wrongly), and fixed the production check that should have thrown a meaningful exception (but didn't).

  • Bug-Fix for devel-branch

Testing & Verification

This change is trivial. It removes a maintainer-mode assertion, and adds a more helpful error message in production.

@goedderz
Copy link
Member Author

@goedderz
Copy link
Member Author

image

@goedderz goedderz self-assigned this Mar 16, 2020
@goedderz goedderz added this to the devel milestone Mar 16, 2020
@mchacki mchacki merged commit 0a95b1e into devel Mar 16, 2020
@mchacki mchacki deleted the bug-fix/replace-orphan-assert-with-check branch March 16, 2020 12:33
ObiWahn added a commit that referenced this pull request Mar 16, 2020
…-fix/validation-fixes-and-improvements

* 'devel' of https://github.com/arangodb/arangodb: (25 commits)
  Do not instantiate snipped if not collection is found on the server. (#11281)
  Add entries related to search features in 3.7
  fix bug (#11279)
  Docs: Add DocuBlocks for document validation. (#11228)
  Feature/ngram similarity function (#11276)
  Fixed production check, removed assertion (#11273)
  fix compile warning
  Cluster Metrics (#11234)
  Feature/satellite graphs (#11015)
  fix newly created supervision bug with incremental updates (#11269)
  remove useless std::cout output
  fix yet more compile warnings
  Implement memory detection override. (#11268)
  implement a global deadline when running testcode in the local arangosh (#11123)
  Encryption key rotation (#11080)
  fix compile warnings
  fix compile warnings
  Feature/aql subquery execution block impl execute implementation (#10606)
  missing metrics (#10625)
  Bug fix/supervision server cleanup (#11187)
  ...
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.

3 participants
0