GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Storage batch setEventBasedHold=false does not work · Issue #2902 · googleapis/java-storage
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Storage batch setEventBasedHold=false does not work #2902Copy link Copy link Closed Labels api: storageIssues related to the googleapis/java-storage API. DescriptionEnvironment details
Code examplepublic static void batchSetHold(Storage storage, String bucketName, List<String> names) { List<BlobInfo> inputBlobs = new ArrayList<>(); for (String filename : names) { inputBlobs.add( BlobInfo.newBuilder(BlobId.of(bucketName, filename)).setEventBasedHold(true).build()); } var result1 = storage.update(inputBlobs); if (result1.get(0).getEventBasedHold() == true) { LOGGER.info("expected"); } inputBlobs = new ArrayList<>(); for (String filename : names) { inputBlobs.add( BlobInfo.newBuilder(BlobId.of(bucketName, filename)).setEventBasedHold(false).build()); } var result2 = storage.update(inputBlobs); if (result2.get(0).getEventBasedHold() == true) { LOGGER.error("Should not happen"); } } Any additional information belowSeconds call to update does not result in any update to blob active holds. Despite setting Seems like regression. This worked just fine with versions:
Activity
MetadataMetadataAssigneesLabelsapi: storageIssues related to the googleapis/java-storage API. TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |