-
Notifications
You must be signed in to change notification settings - Fork 292
Truncate cache 4151 #1388
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
Closed
alan-geosolutions
wants to merge
32
commits into
GeoWebCache:main
from
alan-geosolutions:Truncate_cache_4151
Closed
Truncate cache 4151 #1388
alan-geosolutions
wants to merge
32
commits into
GeoWebCache:main
from
alan-geosolutions:Truncate_cache_4151
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Added stats for batches to improve visibilty Logging batch information Modified S3BulkStorage/S3Ops for delete single tile S3BulkStorage/S3Ops for delete TileRange tile Not in this push: BulkDeleteTask for Single and TileRanges
Added stats for batches to improve visibilty Logging batch information Modified S3BulkStorage/S3Ops for delete single tile S3BulkStorage/S3Ops for delete TileRange tile Not in this push: BulkDeleteTask for Single and TileRanges
Added stats for batches to improve visibilty Logging batch information Modified S3BulkStorage/S3Ops for delete single tile S3BulkStorage/S3Ops for delete TileRange tile Not in this push: BulkDeleteTask for Single and TileRanges
… file Moved BulkDeleteTaskTests that are idenpendent of DeleteTileRanges into own file
Fixed Nofications with decorator Fixed Pass through of Tile Object
Refactor of DeleteTile classes
Removed redundent skipCheck fields in DeleteTileObject Added test for nothing deleted to DeleteTileObjectBulkDeleteTaskTest
Added Bounded tests
Optimized Imports to remove warnings
Prefix term is overloaded, I think they mean path to the key not a prefix for the path to the key in this case. Removed warnings from s3Ops Updated code to issue pending deletes. Prefix term is overloaded, I think they mean path to the key not a prefix for the path to the key in this case.
Fixed bug in MarkPendingDeleteDecorator. Code was skipping remove of pending delete for deletes that where being rerun after a start
Removed unnecessary checks for pending delete path validity. If they are in valid they should just have 0 elements to delete or throw an exception and be retried.
Fixed unused local variable Fixed missing an @OverRide annotation Fixed Array initialization can be written shorter Formatting from mvn
Contributor
Author
|
Created a newer simplified version for this feature |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added code to improve deletion of tiles from the geowebcache.
The deletion happens in the BulkCallTask. The design follows single use practice with all classes having a single use. BulkCallTask chooses the best strategy for managing deletions relying on specialised classes to actually perform the steps required. A stream associated with the strategy in instantiated and executed.
Tasks such as locking/unlocking are handled in call backs so that the code can be collected in one place and tested independently from the S3BulkObject and S3OPs classes.
The primary strategies are
NoDeletionsRequired - Nothing to delete
SingleTile - Deletes a single tile
S3ObjectPathsForPrefix fetches batches of the S3SummaryObjects and deletes the associated tiles
TileRangeWithBoundedBox uses an TileRangeIterator create batches paths and then delete them.
Callbacks:
LockingDecorator - Manage locking
MarkPendingDeleteDecorator - Manage pending deletes
NotificationDecorator - Inform BlobStore that a tile has been deleted
StatisticCallbackDecorator - Keeps a note of work done which is handy when debugging