-
Notifications
You must be signed in to change notification settings - Fork 233
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
Restore OPAQUE_MARKERS handling for list objects V1 #569
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
---|---|---|
|
@@ -1490,8 +1490,12 @@ private void handleBlobList(HttpServletRequest request, | |
if (Quirks.OPAQUE_MARKERS.contains(blobStoreType)) { | ||
StorageMetadata sm = Streams.findLast(set.stream()).orElse(null); | ||
if (sm != null) { | ||
lastKeyToMarker.put(Maps.immutableEntry(containerName, | ||
encodeBlob(encodingType, nextMarker)), nextMarker); | ||
// TODO: verify if we need this handling at all for V2 | ||
String lastKey = isListV2 ? encodeBlob(encodingType, nextMarker) : sm.getName(); | ||
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. @gaul 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. All good. The change doesn't break pagination with V2. |
||
lastKeyToMarker.put( | ||
Maps.immutableEntry(containerName, lastKey), | ||
nextMarker | ||
); | ||
} | ||
} | ||
} else { | ||
|
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.
Can you verify this?