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

Satellite UI: object count may be inaccurate after deleting files #6080

Closed
mobyvb opened this issue Jul 24, 2023 · 6 comments
Closed

Satellite UI: object count may be inaccurate after deleting files #6080

mobyvb opened this issue Jul 24, 2023 · 6 comments
Assignees

Comments

@mobyvb
Copy link
Member

mobyvb commented Jul 24, 2023

Reported reproduction steps:

  • Some objects were uploaded in the bucket, and they were all deleted
  • 9 new objects were uploaded
  • uplink ls -o json -r --encrypted sj://releases/ | wc -l shows 9
  • web UI shows 17 total objects in the bucket, even though there are only 9 (screenshot 1)
  • web UI shows "you have at least 8 objects locked with a different passphrase", because it is only listing the 9 files in the bucket
  • only one passphrase has been used the entire time
  • the issue eventually disappeared, indicating that there is some delay between deletion the object browser list count.

Basically, the object browser is including deleted objects shortly after deletion. Can we investigate why and fix any bugs?

Screenshot 1:

Image

Screenshot 2:

Image

AC:

  • the object count used in the file browser does not include files that were recently deleted
  • if you are unable to improve the responsiveness of the UI after deletes, determine the maximum delay that would be expected in production between a delete and updated UI, and comment on this ticket with the delay, and the reason it cannot be improved easily

Context in Slack

@mobyvb mobyvb added Needs investigation The issue needs investigation to know what's the problem and the solution Satellite UI Needs Estimation Issue still needs story pointing labels Jul 24, 2023
@mobyvb mobyvb changed the title Satellite UI: mismatch between object counts causes unexpected notification Satellite UI: object count may be inaccurate after deleting files Jul 24, 2023
@mobyvb mobyvb removed the Needs Estimation Issue still needs story pointing label Jul 26, 2023
@mobyvb mobyvb self-assigned this Oct 12, 2023
@mobyvb
Copy link
Member Author

mobyvb commented Oct 18, 2023

we discussed with edge team about adding an endpoint on edge services to get the object count
maybe console team could implement this endpoint, as long as Edge says it's a good idea

@mobyvb
Copy link
Member Author

mobyvb commented Oct 24, 2023

related to storj/edge#373

@mobyvb mobyvb assigned VitaliiShpital and unassigned mobyvb Oct 24, 2023
@VitaliiShpital VitaliiShpital removed Needs investigation The issue needs investigation to know what's the problem and the solution Needs Grooming labels Oct 27, 2023
@storj-gerrit
Copy link

storj-gerrit bot commented Oct 27, 2023

@VitaliiShpital
Copy link
Member

@ferristocrat
Copy link

Few options we need to evaluate:

  1. Implement a custom endpoint: Gateway: add a custom endpoint to retrieve total object count edge#373
  2. Remove the "objects are locked" banner
  3. Update the "objects are locked" banner to be more clear as to why the user is seeing the message (objects could be locked, a recent delete that hasn't been reflected yet on satellite, etc)

@VitaliiShpital VitaliiShpital closed this as not planned Won't fix, can't repro, duplicate, stale Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants