-
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 Azure Storage #9523
Conversation
* implement ability to delete all tasks logs or all task logs written before a particular date when written to Azure storage * implement ability to delete all segments from Azure 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.
overall lgtm 🤘, it seems like the code coverage is failing but only for java 11 for some reason?
log.info("Deleting all segment files from Azure storage location [bucket: '%s' prefix: '%s']", | ||
segmentConfig.getContainer(), segmentConfig.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.
nit: formatting
log.info("Deleting all segment files from Azure storage location [bucket: '%s' prefix: '%s']", | |
segmentConfig.getContainer(), segmentConfig.getPrefix() | |
); | |
log.info( | |
"Deleting all segment files from Azure storage location [bucket: '%s' prefix: '%s']", | |
segmentConfig.getContainer(), | |
segmentConfig.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
); | ||
} | ||
catch (Exception e) { | ||
log.error("Error occurred while deleting segment files from s3. Error: %s", e.getMessage()); |
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.
Heh, should probably be
log.error("Error occurred while deleting segment files from s3. Error: %s", e.getMessage()); | |
log.error("Error occurred while deleting segment files from Azure. Error: %s", e.getMessage()); |
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
); | ||
} | ||
catch (Exception e) { | ||
log.error("Error occurred while deleting task log files from s3. Error: %s", e.getMessage()); |
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.
same wrong cloud
log.error("Error occurred while deleting task log files from s3. Error: %s", e.getMessage()); | |
log.error("Error occurred while deleting task log files from Azure. Error: %s", e.getMessage()); |
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 Azure storage location [bucket: %s prefix: %s].", | ||
config.getContainer(), 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.
same comment about 1 line per arg formatting if spans multiple lines
log.info("Deleting all task logs from Azure storage location [bucket: %s prefix: %s].", | |
config.getContainer(), config.getPrefix() | |
); | |
log.info( | |
"Deleting all task logs from Azure storage location [bucket: %s prefix: %s].", | |
config.getContainer(), | |
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 Azure storage location [bucket: '%s' prefix: '%s'] older than %s.", | ||
config.getContainer(), 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.
same formatting nit:
log.info("Deleting all task logs from Azure storage location [bucket: '%s' prefix: '%s'] older than %s.", | |
config.getContainer(), config.getPrefix(), new Date(timestamp) | |
); | |
log.info( | |
"Deleting all task logs from Azure storage location [bucket: '%s' prefix: '%s'] older than %s.", | |
config.getContainer(), | |
config.getPrefix(), | |
new Date(timestamp) | |
); |
sorry there isn't a style rule for this, last we checked it wasn't possible to do, but it's been a while so it might be worth checking on again...
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
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.
👍
Description
implement ability to delete all tasks logs or all task logs
written before a particular date when written to Azure storage
implement ability to delete all segments from Azure deep storage
This PR has: