-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-16279. S3Guard: Implement time-based (TTL) expiry for entries … #802
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 all commits
d74f62d
72095ba
e06c78c
caabb75
4c6ea36
fd137f4
b148ad7
0e6482d
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 |
|---|---|---|
|
|
@@ -1502,12 +1502,11 @@ | |
| </property> | ||
|
|
||
| <property> | ||
| <name>fs.s3a.metadatastore.authoritative.dir.ttl</name> | ||
| <value>3600000</value> | ||
| <name>fs.s3a.metadatastore.metadata.ttl</name> | ||
| <value>15m</value> | ||
| <description> | ||
| This value sets how long a directory listing in the MS is considered as | ||
| authoritative. The value is in milliseconds. | ||
| MetadataStore should be authoritative to use this configuration knob. | ||
| This value sets how long a metadata in the MS is valid. The value is in | ||
bgaborg marked this conversation as resolved.
Show resolved
Hide resolved
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. text only makes sense for us developers. "This value sets how long an entry in the MetadataStore is considered valid. After this time has expired, in non-authoritative mode, S3Guard will check the S3 store for the existence/state of an object and use that as its source of truth.
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. That's true for non auth and auth mode as well.
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. If yes, I'll create another test, which will test this functionality and modify my pr accordingly. |
||
| milliseconds. | ||
| </description> | ||
| </property> | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one | ||
| * or more contributor license agreements. See the NOTICE file | ||
| * distributed with this work for additional information | ||
| * regarding copyright ownership. The ASF licenses this file | ||
| * to you under the Apache License, Version 2.0 (the | ||
| * "License"); you may not use this file except in compliance | ||
| * with the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.hadoop.fs.s3a.s3guard; | ||
|
|
||
| /** | ||
| * This interface is defined for handling TTL expiry of metadata in S3Guard. | ||
| * | ||
| * TTL can be tested by implementing this interface and setting is as | ||
| * {@code S3Guard.ttlTimeProvider}. By doing this, getNow() can return any | ||
| * value preferred and flaky tests could be avoided. By default getNow() | ||
| * returns the EPOCH in runtime. | ||
| */ | ||
| public interface ITtlTimeProvider { | ||
| long getNow(); | ||
bgaborg marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| long getMetadataTtl(); | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.