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

session: Purge epoch headers #288

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,13 @@
### Changed
- Split ID is deprecated, the first child part is used instead and is known to the other parts (#283)
- Object header is now limited to 16KB (#262)
- X-headers `__NEOFS__NETMAP_EPOCH` and `__NEOFS__NETMAP_LOOKUP_DEPTH` are ignored by servers now (#282)

### Removed

### Deprecated
- Object attributes `__NEOFS__TICK_EPOCH` and `__NEOFS__TICK_TOPIC` (#279)
- X-headers `__NEOFS__NETMAP_EPOCH` and `__NEOFS__NETMAP_LOOKUP_DEPTH` (#282)

## [2.15.0] - 2024-01-30

Expand Down
16 changes: 8 additions & 8 deletions object/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ service ObjectService {
// Extended headers can change `Get` behaviour:
// * __NEOFS__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
// calculation. DEPRECATED: header ignored by servers.
// * __NEOFS__NETMAP_LOOKUP_DEPTH \
// Will try older versions (starting from `__NEOFS__NETMAP_EPOCH` if specified or
// the latest one otherwise) of Network Map to find an object until the depth
// limit is reached.
// limit is reached. DEPRECATED: header ignored by servers.
//
// Please refer to detailed `XHeader` description.
//
Expand Down Expand Up @@ -57,7 +57,7 @@ service ObjectService {
// Extended headers can change `Put` behaviour:
// * __NEOFS__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
// calculation. DEPRECATED: header ignored by servers.
//
// Please refer to detailed `XHeader` description.
//
Expand Down Expand Up @@ -88,7 +88,7 @@ service ObjectService {
// Extended headers can change `Delete` behaviour:
// * __NEOFS__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
// calculation. DEPRECATED: header ignored by servers.
//
// Please refer to detailed `XHeader` description.
//
Expand Down Expand Up @@ -164,10 +164,10 @@ service ObjectService {
// Extended headers can change `GetRange` behaviour:
// * __NEOFS__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
// calculation. DEPRECATED: header ignored by servers.
// * __NEOFS__NETMAP_LOOKUP_DEPTH \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
// limit is reached. DEPRECATED: header ignored by servers.
//
// Please refer to detailed `XHeader` description.
//
Expand Down Expand Up @@ -197,10 +197,10 @@ service ObjectService {
// Extended headers can change `GetRangeHash` behaviour:
// * __NEOFS__NETMAP_EPOCH \
// Will use the requsted version of Network Map for object placement
// calculation.
// calculation. DEPRECATED: header ignored by servers.
// * __NEOFS__NETMAP_LOOKUP_DEPTH \
// Will try older versions of Network Map to find an object until the depth
// limit is reached.
// limit is reached. DEPRECATED: header ignored by servers.
//
// Please refer to detailed `XHeader` description.
//
Expand Down
16 changes: 8 additions & 8 deletions proto-docs/object.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ keeping the receiving order.
Extended headers can change `Get` behaviour:
* __NEOFS__NETMAP_EPOCH \
Will use the requsted version of Network Map for object placement
calculation.
calculation. DEPRECATED: header ignored by servers.
* __NEOFS__NETMAP_LOOKUP_DEPTH \
Will try older versions (starting from `__NEOFS__NETMAP_EPOCH` if specified or
the latest one otherwise) of Network Map to find an object until the depth
limit is reached.
limit is reached. DEPRECATED: header ignored by servers.

Please refer to detailed `XHeader` description.

Expand Down Expand Up @@ -136,7 +136,7 @@ Chunk messages SHOULD be sent in the direct order of fragmentation.
Extended headers can change `Put` behaviour:
* __NEOFS__NETMAP_EPOCH \
Will use the requsted version of Network Map for object placement
calculation.
calculation. DEPRECATED: header ignored by servers.

Please refer to detailed `XHeader` description.

Expand Down Expand Up @@ -171,7 +171,7 @@ guarantee. Object will be marked for removal and deleted eventually.
Extended headers can change `Delete` behaviour:
* __NEOFS__NETMAP_EPOCH \
Will use the requsted version of Network Map for object placement
calculation.
calculation. DEPRECATED: header ignored by servers.

Please refer to detailed `XHeader` description.

Expand Down Expand Up @@ -259,10 +259,10 @@ order.
Extended headers can change `GetRange` behaviour:
* __NEOFS__NETMAP_EPOCH \
Will use the requsted version of Network Map for object placement
calculation.
calculation. DEPRECATED: header ignored by servers.
* __NEOFS__NETMAP_LOOKUP_DEPTH \
Will try older versions of Network Map to find an object until the depth
limit is reached.
limit is reached. DEPRECATED: header ignored by servers.

Please refer to detailed `XHeader` description.

Expand Down Expand Up @@ -296,10 +296,10 @@ the request. Note that hash is calculated for XORed data.
Extended headers can change `GetRangeHash` behaviour:
* __NEOFS__NETMAP_EPOCH \
Will use the requsted version of Network Map for object placement
calculation.
calculation. DEPRECATED: header ignored by servers.
* __NEOFS__NETMAP_LOOKUP_DEPTH \
Will try older versions of Network Map to find an object until the depth
limit is reached.
limit is reached. DEPRECATED: header ignored by servers.

Please refer to detailed `XHeader` description.

Expand Down
4 changes: 2 additions & 2 deletions proto-docs/session.md
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,12 @@ affect system behaviour:
* __NEOFS__NETMAP_EPOCH \
Netmap epoch to use for object placement calculation. The `value` is string
encoded `uint64` in decimal presentation. If set to '0' or not set, the
current epoch only will be used.
current epoch only will be used. DEPRECATED: header ignored by servers.
* __NEOFS__NETMAP_LOOKUP_DEPTH \
If object can't be found using current epoch's netmap, this header limits
how many past epochs the node can look up through. The `value` is string
encoded `uint64` in decimal presentation. If set to '0' or not set, only the
current epoch will be used.
current epoch will be used. DEPRECATED: header ignored by servers.


| Field | Type | Label | Description |
Expand Down
4 changes: 2 additions & 2 deletions session/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ message SessionToken {
// * __NEOFS__NETMAP_EPOCH \
// Netmap epoch to use for object placement calculation. The `value` is string
// encoded `uint64` in decimal presentation. If set to '0' or not set, the
// current epoch only will be used.
// current epoch only will be used. DEPRECATED: header ignored by servers.
// * __NEOFS__NETMAP_LOOKUP_DEPTH \
// If object can't be found using current epoch's netmap, this header limits
// how many past epochs the node can look up through. The `value` is string
// encoded `uint64` in decimal presentation. If set to '0' or not set, only the
// current epoch will be used.
// current epoch will be used. DEPRECATED: header ignored by servers.
message XHeader {
// Key of the X-Header
string key = 1 [json_name = "key"];
Expand Down
Loading