@@ -624,38 +624,24 @@ void autochunk_mixedActions_completesSuccessfully() throws TimeoutException {
624624 @ Test
625625 void autochunk_singleActionExceedsChunkSize_failsWithClearError () throws TimeoutException {
626626 final String orchestratorName = "AutochunkOversizedOrch" ;
627- final String activityName = "OversizedActivity" ;
628- // Create an activity that returns a payload larger than 1MB chunk size
629- // Since externalization threshold is set very high, this will NOT be externalized
630- // and will try to be sent as a single action exceeding the chunk size
627+ // Create an orchestrator that completes with a payload larger than 1MB chunk size.
628+ // Externalization is NOT configured so the large payload stays inline in the
629+ // CompleteOrchestration action, which exceeds the chunk size.
631630 final int payloadSize = 1_200_000 ;
632631
633- // Use a store but set threshold very high so the payload won't be externalized
634- InMemoryPayloadStore store = new InMemoryPayloadStore ();
635- LargePayloadOptions options = new LargePayloadOptions .Builder ()
636- .setThresholdBytes (1_048_576 ) // 1 MiB — max allowed threshold
637- .setMaxExternalizedPayloadBytes (10_000_000 )
638- .build ();
639-
640632 TestDurableTaskWorkerBuilder workerBuilder = this .createWorkerBuilder ();
641- workerBuilder .innerBuilder .useExternalizedPayloads (store , options );
642633 workerBuilder .innerBuilder .setCompleteOrchestratorResponseChunkSizeBytes (
643634 DurableTaskGrpcWorkerBuilder .MIN_CHUNK_SIZE_BYTES );
644635 workerBuilder .addOrchestrator (orchestratorName , ctx -> {
645- String result = ctx .callActivity (activityName , null , String .class ).await ();
646- ctx .complete (result .length ());
647- });
648- workerBuilder .addActivity (activityName , ctx -> {
649636 StringBuilder sb = new StringBuilder (payloadSize );
650637 for (int i = 0 ; i < payloadSize ; i ++) {
651638 sb .append ('Z' );
652639 }
653- return sb .toString ();
640+ ctx . complete ( sb .toString () );
654641 });
655642 DurableTaskGrpcWorker worker = workerBuilder .buildAndStart ();
656643
657644 DurableTaskGrpcClientBuilder clientBuilder = this .createClientBuilder ();
658- clientBuilder .useExternalizedPayloads (store , options );
659645 DurableTaskClient client = clientBuilder .build ();
660646
661647 try (worker ; client ) {
@@ -718,7 +704,7 @@ void largeInputOutputAndCustomStatus_allExternalized() throws TimeoutException {
718704 @ Test
719705 void continueAsNew_withLargeCustomStatusAndFinalOutput () throws TimeoutException {
720706 final String orchestratorName = "ContinueAsNewAllOrch" ;
721- final int payloadSize = 800_000 ;
707+ final int payloadSize = 1_000_000 ;
722708 final int iterations = 3 ;
723709
724710 InMemoryPayloadStore store = new InMemoryPayloadStore ();
@@ -771,8 +757,8 @@ void largeSubOrchestrationAndActivityOutput_combined() throws TimeoutException {
771757 final String parentOrchName = "CombinedParentOrch" ;
772758 final String childOrchName = "CombinedChildOrch" ;
773759 final String activityName = "CombinedActivity" ;
774- final int subOrchPayloadSize = 650_000 ;
775- final int activityPayloadSize = 820_000 ;
760+ final int subOrchPayloadSize = 1_000_000 ;
761+ final int activityPayloadSize = 1_000_000 ;
776762
777763 InMemoryPayloadStore store = new InMemoryPayloadStore ();
778764 LargePayloadOptions options = new LargePayloadOptions .Builder ().build ();
0 commit comments