-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Ability to Delete task logs and segments from Google Storage #9519
Conversation
* implement ability to delete all tasks logs or all task logs written before a particular date when written to Google storage * implement ability to delete all segments from Google deep storage
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.
lgtm (sorry for all the formatting nitpicking)
public GoogleDataSegmentKiller( | ||
final GoogleStorage storage, | ||
GoogleAccountConfig accountConfig, | ||
GoogleInputDataConfig inputDataConfig) |
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.
formatting
GoogleInputDataConfig inputDataConfig) | |
GoogleInputDataConfig inputDataConfig | |
) |
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.
done
LOG.info("Deleting all segment files from gs location [bucket: '%s' prefix: '%s']", | ||
accountConfig.getBucket(), accountConfig.getPrefix() |
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.
LOG.info("Deleting all segment files from gs location [bucket: '%s' prefix: '%s']", | |
accountConfig.getBucket(), accountConfig.getPrefix() | |
LOG.info( | |
"Deleting all segment files from gs location [bucket: '%s' prefix: '%s']", | |
accountConfig.getBucket(), | |
accountConfig.getPrefix() |
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.
done
GoogleTaskLogsConfig config, | ||
GoogleStorage storage, | ||
GoogleInputDataConfig inputDataConfig, | ||
CurrentTimeMillisSupplier timeSupplier) |
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.
CurrentTimeMillisSupplier timeSupplier) | |
CurrentTimeMillisSupplier timeSupplier | |
) |
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.
done
LOG.info("Deleting all task logs from gs location [bucket: '%s' prefix: '%s'].", | ||
config.getBucket(), config.getPrefix() | ||
); |
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.
LOG.info("Deleting all task logs from gs location [bucket: '%s' prefix: '%s'].", | |
config.getBucket(), config.getPrefix() | |
); | |
LOG.info( | |
"Deleting all task logs from gs location [bucket: '%s' prefix: '%s'].", | |
config.getBucket(), | |
config.getPrefix() | |
); |
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.
done
LOG.info("Deleting all task logs from gs location [bucket: '%s' prefix: '%s'] older than %s.", | ||
config.getBucket(), config.getPrefix(), new Date(timestamp) | ||
); |
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.
LOG.info("Deleting all task logs from gs location [bucket: '%s' prefix: '%s'] older than %s.", | |
config.getBucket(), config.getPrefix(), new Date(timestamp) | |
); | |
LOG.info( | |
"Deleting all task logs from gs location [bucket: '%s' prefix: '%s'] older than %s.", | |
config.getBucket(), | |
config.getPrefix(), | |
new Date(timestamp) | |
); |
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.
done
log.info("Deleting all task logs from s3 location [bucket: '%s' prefix: '%s'].", | ||
config.getS3Bucket(), config.getS3Prefix() | ||
); |
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.
log.info("Deleting all task logs from s3 location [bucket: '%s' prefix: '%s'].", | |
config.getS3Bucket(), config.getS3Prefix() | |
); | |
log.info( | |
"Deleting all task logs from s3 location [bucket: '%s' prefix: '%s'].", | |
config.getS3Bucket(), | |
config.getS3Prefix() | |
); |
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.
done
Description
implement ability to delete all tasks logs or all task logs
written before a particular date when written to Google storage
implement ability to delete all segments from Google deep storage
This PR has: