8000 fix truncate operation in synchronous replication by jsteemann · Pull Request #10492 · arangodb/arangodb · GitHub
[go: up one dir, main page]

Skip to content

fix truncate operation in synchronous replication #10492

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
Nov 21, 2019

Conversation

jsteemann
Copy link
Contributor

Scope & Purpose

Fix truncate operation in synchronous replication.
Previously, when sending the HTTP PUT /_api/collection//truncate, an empty body was sent with the request.
This lead to a parse error on the follower, which was then always dropped.
This PR sends an empty object instead of a completely empty body, so the followers can parse the request and subsequently can carry out the truncate operation.
This doesn't affect 3.5.

  • Bug-Fix for devel-branch (i.e. no need for backports?)
  • The behavior in this PR can be (and was) manually tested (support / qa / customers can test it)
  • The behavior change can be verified via automatic tests

Testing & Verification

This change is already covered by existing tests, such as many tests, e.g. dump.

https://172.16.10.101/view/PR/job/arangodb-matrix-pr/7303/

@jsteemann jsteemann added this to the devel milestone Nov 20, 2019
@jsteemann
Copy link
Contributor Author

tests blue

@jsteemann jsteemann merged commit d3b00d6 into devel Nov 21, 2019
@jsteemann jsteemann deleted the bug-fix/fix-truncate-in-sync-repl branch November 21, 2019 07:51
ObiWahn added a commit that referenced this pull request Nov 21, 2019
…ture/dump-db-properties

* 'devel' of https://github.com/arangodb/arangodb:
  Splicing gather cleanup (#10479)
  Feature/changelog for subquery splicing (#10396)
  Fix potential segfault (#9308)
  don't smile away exception
  fixing issue #10470 (#10491)
  add generated front end files in order to allow collection creation
  Added precondition to ensure that server is still as seen before. (#10468)
  Actually use the given format to execute a query (#10484)
  Fix SubqueryStartExecutor (#10488)
  add tests for inventory (#10464)
  fix truncate operation in synchronous replication (#10492)
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 this pull request may close these issues.

2 participants
0