Skip to content

Don't keep file and reader around in backendBlock#2273

Merged
joe-elliott merged 1 commit intografana:mainfrom
electron0zero:backendBlock_remove_cache
Mar 30, 2023
Merged

Don't keep file and reader around in backendBlock#2273
joe-elliott merged 1 commit intografana:mainfrom
electron0zero:backendBlock_remove_cache

Conversation

@electron0zero
Copy link
Copy Markdown
Member

What this PR does:
We are saving file and reader in backendBlock, but are never using them. removing them to save some memory

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@joe-elliott joe-elliott merged commit da1cd9b into grafana:main Mar 30, 2023
@electron0zero electron0zero deleted the backendBlock_remove_cache branch March 30, 2023 13:49
electron0zero added a commit to electron0zero/tempo that referenced this pull request Apr 6, 2023
electron0zero added a commit to electron0zero/tempo that referenced this pull request Apr 7, 2023
electron0zero added a commit to electron0zero/tempo that referenced this pull request Apr 11, 2023
joe-elliott pushed a commit that referenced this pull request Apr 11, 2023
* WIP

* first pass at walReaderAt

* use io.ReaderAt instead of os.File

* Add tests

* cleanup todo

* read TotalBytesRead during callback to get accurate size after iteration

* sometimes we read whole block

* sync vparquet changes with vparquet2, also includes #2273 changes

* Make walReaderAt private and add BytesRead method

* Add BytesRead on BackendReaderAt

* fix lint

* Make TotalBytesRead private
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