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

local adapter - respect namespace in objects full path #938

Merged
merged 2 commits into from
Nov 19, 2020

Conversation

guy-har
Copy link
Contributor

@guy-har guy-har commented Nov 19, 2020

No description provided.

@codecov-io
Copy link

codecov-io commented Nov 19, 2020

Codecov Report

Merging #938 (6ad53c1) into master (99b0c86) will increase coverage by 0.16%.
The diff coverage is 36.73%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #938      +/-   ##
==========================================
+ Coverage   44.21%   44.37%   +0.16%     
==========================================
  Files         143      143              
  Lines       11451    11483      +32     
==========================================
+ Hits         5063     5096      +33     
+ Misses       5769     5750      -19     
- Partials      619      637      +18     
Impacted Files Coverage Δ
block/local/adapter.go 50.00% <36.73%> (+19.86%) ⬆️
config/logger.go 64.28% <0.00%> (-10.72%) ⬇️
catalog/cataloger_create_repository.go 59.25% <0.00%> (-7.41%) ⬇️
catalog/cataloger_commit.go 79.71% <0.00%> (-2.90%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 99b0c86...6ad53c1. Read the comment docs.

Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Great, thanks! All the code is nice, tested, makes sense, and obviously approved.

There may be backwards-compatiblity issues that we should discuss. I suggest we put it out as a release note but not more - local storage is not currently suitable for production use. Semver says it's a new minor version (because we're pre-1.0.0). @ozkatz WDYT?

return qualifiedKey, err
}
if qualifiedKey.StorageType != block.StorageTypeLocal {
return qualifiedKey, block.ErrInvalidNamespace
Copy link
Contributor

Choose a reason for hiding this comment

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

How can this happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arielshaqed
This could happen if the repository is configured with a different namespace.
Will happen due to wrong configuration (that we currently aloud).
Or, for example, an old repository that was configured when we where using S3, and then we changed to local

block/local/adapter.go Outdated Show resolved Hide resolved
Co-authored-by: arielshaqed <ariels@treeverse.io>
Copy link
Contributor

@arielshaqed arielshaqed left a comment

Choose a reason for hiding this comment

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

Approved once release note is ready to go.

@guy-har guy-har merged commit 2c137c6 into master Nov 19, 2020
@guy-har guy-har deleted the fix/local-adapter-namespace branch November 19, 2020 16:39
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