René's URL Explorer Experiment


Title: Preflight all externalized payload sizes before starting uploads · Issue #308 · microsoft/durabletask-java · GitHub

Open Graph Title: Preflight all externalized payload sizes before starting uploads · Issue #308 · microsoft/durabletask-java

X Title: Preflight all externalized payload sizes before starting uploads · Issue #308 · microsoft/durabletask-java

Description: The Azure Blob interceptor externalizes response fields sequentially, validating each size only immediately before that field's upload. A later deterministic size violation can therefore occur after earlier valid uploads. The failed-comp...

Open Graph Description: The Azure Blob interceptor externalizes response fields sequentially, validating each size only immediately before that field's upload. A later deterministic size violation can therefore occur afte...

X Description: The Azure Blob interceptor externalizes response fields sequentially, validating each size only immediately before that field's upload. A later deterministic size violation can therefore occur ...

Opengraph URL: https://github.com/microsoft/durabletask-java/issues/308

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Preflight all externalized payload sizes before starting uploads","articleBody":"The Azure Blob interceptor externalizes response fields sequentially, validating each size only immediately before that field's upload. A later deterministic size violation can therefore occur after earlier valid uploads. The failed-completion fallback discards the partially transformed builder and its references, but does not undo those storage writes.\r\n\r\n## Current source evidence\r\n\r\nInspected current `main` at [`0262c53c8f13401bfe2c25a3e058128963ad51a9`](https://github.com/microsoft/durabletask-java/commit/0262c53c8f13401bfe2c25a3e058128963ad51a9).\r\n\r\n- [`externalizeOrchestratorResponse`](https://github.com/microsoft/durabletask-java/blob/0262c53c8f13401bfe2c25a3e058128963ad51a9/azure-blob-payloads/src/main/java/com/microsoft/durabletask/azureblobpayloads/LargePayloadInterceptor.java#L211-L256) processes custom status and then actions. On a size exception, it returns a new failed completion rather than the builder containing earlier uploaded references.\r\n- [`maybeExternalize`](https://github.com/microsoft/durabletask-java/blob/0262c53c8f13401bfe2c25a3e058128963ad51a9/azure-blob-payloads/src/main/java/com/microsoft/durabletask/azureblobpayloads/LargePayloadInterceptor.java#L1102-L1123) validates only the current field and then calls `payloadStore.upload`.\r\n- Immutable protobuf messages prevent some caller-visible mutation, but they do not roll back successful Blob uploads.\r\n\r\nThe still-open [parity PR 306](https://github.com/microsoft/durabletask-java/pull/306), inspected at `a6105169da7c72fed25d6411b2fe295a4d4fe2e7`, changes transient failure handling but still has this per-field check/upload sequence.\r\n\r\n## Requested regression\r\n\r\nUse the existing `LargePayloadInterceptorTest` harness, including its mock store and `invokeExternalize` helper:\r\n\r\n```java\r\noptions.setThresholdBytes(8).setMaxPayloadBytes(32);\r\ninterceptor = new LargePayloadInterceptor(mockStore, options);\r\nOrchestratorResponse request = OrchestratorResponse.newBuilder()\r\n    .setInstanceId(\"size-preflight\")\r\n    .setCompletionToken(\"completion\")\r\n    .setCustomStatus(StringValue.of(\"s\".repeat(16)))\r\n    .addActions(OrchestratorAction.newBuilder()\r\n        .setId(1)\r\n        .setScheduleTask(ScheduleTaskAction.newBuilder()\r\n            .setName(\"activity\")\r\n            .setInput(StringValue.of(\"x\".repeat(33)))))\r\n    .build();\r\n\r\nOrchestratorResponse result = (OrchestratorResponse) invokeExternalize(request);\r\n\r\nverify(mockStore, never()).upload(anyString());\r\nassertEquals(1, result.getActionsCount());\r\nassertEquals(\r\n    OrchestrationStatus.ORCHESTRATION_STATUS_FAILED,\r\n    result.getActions(0).getCompleteOrchestration().getOrchestrationStatus());\r\n```\r\n\r\nThe current sequence can upload the valid custom status before checking the oversized activity input, then omit its token from the failure response. Cover entity batches and completion carryover fields in the preflight as well.\r\n\r\n**Evidence boundary:** this is a source-backed report. The Java regression recipe has not been run for this filing; the equivalent JavaScript storage-side-effect cases were reproduced and fixed.\r\n\r\n## Acceptance Criteria\r\n\r\n- [ ] Inspect and validate the entire set of relevant outgoing payload fields before the first store upload, retaining original values for the later transformation pass.\r\n- [ ] Any deterministic maximum-size violation causes zero uploads for that message.\r\n- [ ] Include all currently supported fields: custom status, action inputs/results/details, carryover history, relevant failure details and entity payloads.\r\n- [ ] Preserve existing permanent failure representation and the independently tracked entity-release obligations; do not retain invalid business actions merely to preserve uploaded references.\r\n- [ ] Preserve empty/absent fields, threshold semantics, configured limits and cancellation/error behavior.\r\n- [ ] Keep the eventual implementation compatible with known-token idempotency: references that are already final must not be re-uploaded or treated as new raw payloads.\r\n- [ ] Add valid-first/oversized-later orchestration/entity tests, UTF-8 boundaries and all-valid transformations.\r\n- [ ] Document that deterministic size validation now occurs before hypothetical earlier upload errors.\r\n\r\n## Non-goals\r\n\r\nThis does not make backend submission and Blob uploads one transaction, recover existing orphan blobs, or guarantee zero orphans after real I/O failures. No unconditional catch-and-delete rollback should be added: an uncertain completion response is not proof that the backend did not record a reference.\r\n\r\nThe current Java interceptor already traverses `CompleteOrchestrationAction.CarryoverEvents`; the JavaScript carryover omission does not need a separate Java issue.\r\n\r\n## Related\r\n\r\n- [JavaScript zero-upload preflight fix](https://github.com/microsoft/durabletask-js/commit/55dfcf37da0ed3a2791f778d75621cb7f91144a7).\r\n- [.NET tracking issue 820](https://github.com/microsoft/durabletask-dotnet/issues/820).\r\n- [Java issue 307](https://github.com/microsoft/durabletask-java/issues/307) addresses entity unlock retention and known-token handling. This issue is the distinct deterministic-size-before-storage guarantee.\r\n","author":{"url":"https://github.com/YunchuWang","@type":"Person","name":"YunchuWang"},"datePublished":"2026-10-19T21:01:17Z","url":"https://github.com/microsoft/durabletask-java/issues/308"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:68a936e3-de77-57ee-6cfe-91075b92c705
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA202:248224:139C6A:1AAE61:6AFE3568
html-safe-noncec25eb7278f701044aa990863a5c8f718e78925eb7eb2374418499d6e54355f57
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjAyOjI0ODIyNDoxMzlDNkE6MUFBRTYxOjZBRkUzNTY4IiwidmlzaXRvcl9pZCI6IjI2NzA0OTY2ODY2MDU3NDM0NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf18edf037e8c03abde87ee9d0f680c49b8af433341687c0318ee237cd4ae6e7f
hovercard-subject-tagissue:5931503466
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-java/308/issue_layout
twitter:imagehttps://opengraph.githubassets.com/9de1bb2d799f1b4b5060e2d8d72b3b44638d0170d60e8945defce5d8d16472dd/microsoft/durabletask-java/issues/308
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/9de1bb2d799f1b4b5060e2d8d72b3b44638d0170d60e8945defce5d8d16472dd/microsoft/durabletask-java/issues/308
og:image:altThe Azure Blob interceptor externalizes response fields sequentially, validating each size only immediately before that field's upload. A later deterministic size violation can therefore occur afte...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameYunchuWang
hostnamegithub.com
expected-hostnamegithub.com
None260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e
turbo-cache-controlno-preview
go-importgithub.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id452823832
octolytics-dimension-repository_nwomicrosoft/durabletask-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id452823832
octolytics-dimension-repository_network_root_nwomicrosoft/durabletask-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8b413ea7a9b010f4f2ebbb923b041b0d6091dd94
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/durabletask-java/issues/308#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fissues%2F308
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fdurabletask-java%2Fissues%2F308
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fdurabletask-java
Reloadhttps://github.com/microsoft/durabletask-java/issues/308
Reloadhttps://github.com/microsoft/durabletask-java/issues/308
Reloadhttps://github.com/microsoft/durabletask-java/issues/308
microsofthttps://github.com/microsoft
durabletask-javahttps://github.com/microsoft/durabletask-java
Codehttps://github.com/microsoft/durabletask-java
Issues47 (47)https://github.com/microsoft/durabletask-java/issues
Pull requests4 (4)https://github.com/microsoft/durabletask-java/pulls
Actionshttps://github.com/microsoft/durabletask-java/actions
Projectshttps://github.com/microsoft/durabletask-java/projects
Security and qualityhttps://github.com/microsoft/durabletask-java/security
Insightshttps://github.com/microsoft/durabletask-java/insights
https://github.com/microsoft/durabletask-java
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/308
New issuehttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/308
Preflight all externalized payload sizes before starting uploadshttps://github.com/microsoft/durabletask-java/issues/308#top
bugSomething isn't workinghttps://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/YunchuWang
wangbill (YunchuWang)https://github.com/YunchuWang
on Oct 19, 2026https://github.com/microsoft/durabletask-java/issues/308#issue-5931503466
0262c53c8f13401bfe2c25a3e058128963ad51a9https://github.com/microsoft/durabletask-java/commit/0262c53c8f13401bfe2c25a3e058128963ad51a9
externalizeOrchestratorResponsehttps://github.com/microsoft/durabletask-java/blob/0262c53c8f13401bfe2c25a3e058128963ad51a9/azure-blob-payloads/src/main/java/com/microsoft/durabletask/azureblobpayloads/LargePayloadInterceptor.java#L211-L256
maybeExternalizehttps://github.com/microsoft/durabletask-java/blob/0262c53c8f13401bfe2c25a3e058128963ad51a9/azure-blob-payloads/src/main/java/com/microsoft/durabletask/azureblobpayloads/LargePayloadInterceptor.java#L1102-L1123
parity PR 306https://github.com/microsoft/durabletask-java/pull/306
JavaScript zero-upload preflight fixhttps://github.com/microsoft/durabletask-js/commit/55dfcf37da0ed3a2791f778d75621cb7f91144a7
.NET tracking issue 820https://github.com/microsoft/durabletask-dotnet/issues/820
Java issue 307https://github.com/microsoft/durabletask-java/issues/307
wangbill (YunchuWang)https://github.com/YunchuWang
bugSomething isn't workinghttps://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22bug%22
on Oct 19, 2026https://github.com/microsoft/durabletask-java/issues/308#event-33685347170
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/durabletask-java/issues/308
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/durabletask-java/issues/308
bugSomething isn't workinghttps://github.com/microsoft/durabletask-java/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.