Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Conversation

@apoorvedave1
Copy link
Contributor

@apoorvedave1 apoorvedave1 commented Oct 8, 2020

What is the context for this pull request?

Refresh Append and Refresh Delete actions should update "appendedFiles" and "deletedFiles" in index metadata. This should happen as below:
RefreshDeleteAction

  1. it should now pick all the deletedFiles from the index metadata as well as look for additional recently deleted files.
  2. Once delete operation completes, clear deletedFiles from index metadata.
  3. Update appendedFiles in metadata by adding recently appended files to the appendedFiles list.

RefreshAppendAction

  1. It should now pick all the appendedFiles from index metadata as well as look for additional recently appended files.
  2. Once append operation completes, clear appendedFiles from index metadata.
  3. Update deletedFiles in metadata by adding recently deleted files to the deletedFiles list.

What changes were proposed in this pull request?

bugfixes for #179, #183

Does this PR introduce any user-facing change?

How was this patch tested?

added unit tests

@apoorvedave1 apoorvedave1 marked this pull request as draft October 8, 2020 05:00
apoorvedave1 and others added 24 commits October 7, 2020 22:03
…into bugfixes

# Conflicts:
#	src/test/scala/com/microsoft/hyperspace/TestUtils.scala
Co-authored-by: Terry Kim <yuminkim@gmail.com>
Co-authored-by: Terry Kim <yuminkim@gmail.com>
# Conflicts:
#	src/main/scala/com/microsoft/hyperspace/actions/RefreshDeleteAction.scala
#	src/test/scala/com/microsoft/hyperspace/index/RefreshIndexTests.scala
@apoorvedave1 apoorvedave1 changed the title [WIP] Bugfixes: refresh delete and append should update "deleted" and "appended" files in metadata Bugfixes: refresh delete and append should update "deleted" and "appended" files in metadata Oct 9, 2020
@apoorvedave1 apoorvedave1 requested a review from sezruby October 9, 2020 02:56
@apoorvedave1 apoorvedave1 self-assigned this Oct 9, 2020
@apoorvedave1 apoorvedave1 added the bug Something isn't working label Oct 9, 2020
@apoorvedave1 apoorvedave1 added this to the 0.4.0 milestone Oct 9, 2020
@apoorvedave1 apoorvedave1 marked this pull request as ready for review October 9, 2020 02:57
@imback82 imback82 changed the title Bugfixes: refresh delete and append should update "deleted" and "appended" files in metadata Refresh delete and append should update "deleted" and "appended" files in metadata Oct 9, 2020
Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

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

generally, looking ok to me

@apoorvedave1 apoorvedave1 requested a review from imback82 October 10, 2020 02:34
Copy link
Contributor

@imback82 imback82 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @apoorvedave1!

I will wait on merging this until @sezruby approves since she had few pending comments.

@sezruby
Copy link
Collaborator

sezruby commented Oct 10, 2020

I commented in other PRs - let's resolve the comments with them.

Thanks @apoorvedave1 for this work!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RefreshDelete should update appended files list in metadata

3 participants