-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10655. Support PutObjectTagging, GetObjectTagging, and DeleteObjectTagging #6756
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
Changes from 4 commits
9a581ed
a1c4da9
c356a62
1453d62
fc5b56d
dfdab88
ba54b0e
e69d86a
e06eab5
705d2ca
9f9ce9c
f18bd2c
2c8b70f
75023dd
00ff96a
1239179
3fd082c
ef0828c
5dbc376
1505a90
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,8 +34,8 @@ private KeyValueUtil() { | |
| /** | ||
| * Parse Key,Value map data from protobuf representation. | ||
| */ | ||
| public static Map<String, String> getFromProtobuf(List<KeyValue> metadata) { | ||
| return metadata.stream() | ||
| public static Map<String, String> getFromProtobuf(List<KeyValue> keyValueList) { | ||
| return keyValueList.stream() | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can avoid this change as it is only variable name change in the whole file
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for the review. I changed it since the user of this method is not for metadata only (i.e. tags). |
||
| .collect(Collectors.toMap(KeyValue::getKey, | ||
| KeyValue::getValue)); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OzoneManagerVersion.OBJECT_TAGwas introduced in 8a23991. Any OM built since that commit but preceding this change does not support these methods. So request from client to such OM would fail withInvalidProtocolBufferException. Failing withIOException("OzoneManager does not support object tags")might be friendlier, but we need a newOzoneManagerVersionfor that.CC @errose28
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Introduced a new
OzoneManagerVersion.