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

Add new version of DeleteRequest format #2814

Merged
merged 3 commits into from
Jun 27, 2024

Conversation

Arun-LinkedIn
Copy link
Contributor

@Arun-LinkedIn Arun-LinkedIn commented Jun 26, 2024

This version contains flag to indicate if we need to insert a delete tombstone even if blob is missing on servers

BlobId id = new BlobId(stream, map);
long deletionTimeInMs = stream.readLong();
boolean isForceDelete = stream.readByte() == 1;
return new DeleteRequest(correlationId, clientId, id, deletionTimeInMs, isForceDelete);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add VERSION_3 here. This constructor would use version 2

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@codecov-commenter
Copy link

codecov-commenter commented Jun 26, 2024

Codecov Report

Attention: Patch coverage is 38.88889% with 11 lines in your changes missing coverage. Please review.

Project coverage is 70.16%. Comparing base (52ba813) to head (b05abf6).
Report is 36 commits behind head on master.

Files Patch % Lines
.../java/com/github/ambry/protocol/DeleteRequest.java 38.88% 9 Missing and 2 partials ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2814      +/-   ##
============================================
+ Coverage     64.24%   70.16%   +5.91%     
- Complexity    10398    11735    +1337     
============================================
  Files           840      842       +2     
  Lines         71755    72338     +583     
  Branches       8611     8705      +94     
============================================
+ Hits          46099    50754    +4655     
+ Misses        23004    18907    -4097     
- Partials       2652     2677      +25     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Arun-LinkedIn Arun-LinkedIn merged commit 031b655 into linkedin:master Jun 27, 2024
5 checks passed
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.

3 participants