question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

deleteOldVersions API

See original GitHub issue

Describe the problem After refreshing an index, the old version of the index remains on the storage. We should keep the old versions to support consistency & isolation of index data, but at some point in time, they’re no longer needed. So it would be good if there’s an API to clean up the old versions.

Describe your proposed solution

API design

def deleteOldVersions(indexName: String)

hs.deleteOldVersions("indexName")

But there’s no API to show the list of versions. I think it would be great to provide an API for statistics of an index so that a user can check [ size of index / existing versions / creation time / last used time(from event log)… etc]

Now hs.index("indexName") returns “indexContentPaths” column that shows the paths referred by the latest index version. So based on that info, we could validate the given versions and determine which versions should we delete.

Additional context

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sezrubycommented, Jun 30, 2021

Yea hs.index("indexName") was added after the sentences.

0reactions
paryojacommented, Jul 8, 2021

@sezruby Ok. I will work on this. Since I am not aware of Delta Lake time travel query, I will first do the simple implementation ### first and ask you about how time travel query works.

For naming convention, delete index doesn’t remove actual index files but vacuum index does remove the files.

Since the new api actually removes the index files (except the latest one), I think it is more like vacuumOldVersions or vacuumOld

WDYT?

Read more comments on GitHub >

github_iconTop Results From Across the Web

REST API - Deleting old version issue - Atlassian Community
1 answer · 1) Send a request to Get content versions (GET /wiki/rest/api/content/{id}/version): · 2) From above results, you can see that the...
Read more >
How to remove old versions of API Proxy
You can manually delete it in the Proxy UI or use below API,. https://apidocs.apigee.com/management/apis/delete/organizations/%7Borg_name%7D/ ...
Read more >
Remove file version - API Reference - Box Developer
Returns an empty response when the file has been successfully deleted. default application/json Client error.
Read more >
Deleting old content versions using the API - Episerver Support
Deleting old content versions using the API ... it is instead possible to use IContentVersionRepository to delete older content versions.
Read more >
Deleting object versions from a versioning-enabled bucket
Using the S3 console · In the Buckets list, choose the name of the bucket that contains the object. · In the Objects...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found