-
Notifications
You must be signed in to change notification settings - Fork 38
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
services/object: fallback to GET in GET_RANGE #1884
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Depends on #1879 . |
Codecov Report
@@ Coverage Diff @@
## master #1884 +/- ##
==========================================
- Coverage 30.87% 30.86% -0.01%
==========================================
Files 378 378
Lines 27029 27059 +30
==========================================
+ Hits 8345 8353 +8
- Misses 17992 18013 +21
- Partials 692 693 +1
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Current spec allows denying GET_RANGE requests from other storage nodes. However, GET should always be allowed and it is enough to perform GET_RANGE locally Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
cthulhu-rider
approved these changes
Oct 12, 2022
aprasolova
pushed a commit
to aprasolova/neofs-node
that referenced
this pull request
Oct 19, 2022
Current spec allows denying GET_RANGE requests from other storage nodes. However, GET should always be allowed and it is enough to perform GET_RANGE locally Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 7, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 7, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 7, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 7, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 14, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 21, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Sep 21, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
carpawell
added a commit
to carpawell/neofs-node
that referenced
this pull request
Oct 23, 2023
Do it as it is already done for GET, HEAD, GETRANGE. In the case of a container node that does not have an object locally, the node spawns GETRANGE request in order to hash it. That is not allowed operation in the NeoFS. Even with nspcc-dev#1884, GET may fail because the node may not be a container part. Moreover, attached bearer token is not allowed for the node's key usage so that is another way to get unexpected results. Forwarding requests is the only sane fix for the nspcc-dev#2541. The code smells but this is not this commit's responsibility: it is hard to fix that bug nicely without a get service refactor. Closes nspcc-dev#2541. Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Current spec allows denying GET_RANGE requests from other storage nodes. However, GET should always be allowed and it is enough to perform GET_RANGE locally
Signed-off-by: Evgenii Stratonikov evgeniy@morphbits.ru