@@ -441,11 +441,11 @@ public O execute(Client client, Duration timeout) throws TimeoutException, Prech
441441 case SERVER_ERROR :
442442 lastException = grpcRequest .mapStatusException ();
443443 advanceRequest (); // Advance to next node before retrying
444-
445- // Handle INVALID_NODE_ACCOUNT_ID after advancing (matches Go SDK's executionStateRetryWithAnotherNode)
446- if (status == Status .INVALID_NODE_ACCOUNT_ID ) {
444+
445+ // Handle INVALID_NODE_ACCOUNT after advancing (matches Go SDK's executionStateRetryWithAnotherNode)
446+ if (status == Status .INVALID_NODE_ACCOUNT ) {
447447 logger .trace (
448- "Received INVALID_NODE_ACCOUNT_ID ; updating address book and marking node {} as unhealthy, attempt #{}" ,
448+ "Received INVALID_NODE_ACCOUNT ; updating address book and marking node {} as unhealthy, attempt #{}" ,
449449 node .getAccountId (),
450450 attempt );
451451 // Schedule async address book update (matches Go's defer client._UpdateAddressBook())
@@ -789,19 +789,21 @@ private void executeAsyncInternal(
789789 switch (executionState ) {
790790 case SERVER_ERROR :
791791 advanceRequest (); // Advance to next node before retrying
792-
793- // Handle INVALID_NODE_ACCOUNT_ID after advancing (matches Go SDK's executionStateRetryWithAnotherNode)
794- if (status == Status .INVALID_NODE_ACCOUNT_ID ) {
792+
793+ // Handle INVALID_NODE_ACCOUNT after advancing (matches Go SDK's
794+ // executionStateRetryWithAnotherNode)
795+ if (status == Status .INVALID_NODE_ACCOUNT ) {
795796 logger .trace (
796- "Received INVALID_NODE_ACCOUNT_ID ; updating address book and marking node {} as unhealthy, attempt #{}" ,
797+ "Received INVALID_NODE_ACCOUNT ; updating address book and marking node {} as unhealthy, attempt #{}" ,
797798 grpcRequest .getNode ().getAccountId (),
798799 attempt );
799- // Schedule async address book update (matches Go's defer client._UpdateAddressBook())
800+ // Schedule async address book update (matches Go's defer
801+ // client._UpdateAddressBook())
800802 client .updateNetworkFromAddressBook ();
801803 // Mark this node as unhealthy
802804 client .network .increaseBackoff (grpcRequest .getNode ());
803805 }
804-
806+
805807 executeAsyncInternal (
806808 client ,
807809 attempt + 1 ,
@@ -901,9 +903,10 @@ ExecutionState getExecutionState(Status status, ResponseT response) {
901903 return ExecutionState .SERVER_ERROR ;
902904 case BUSY :
903905 return ExecutionState .RETRY ;
904- case INVALID_NODE_ACCOUNT_ID :
906+ case INVALID_NODE_ACCOUNT :
905907 // Matches Go SDK's executionStateRetryWithAnotherNode behavior:
906908 // immediately retry with next node without delay
909+ // This occurs when a node's account ID has changed
907910 return ExecutionState .SERVER_ERROR ;
908911 case OK :
909912 return ExecutionState .SUCCESS ;
@@ -1010,9 +1013,9 @@ O mapResponse() {
10101013 }
10111014
10121015 void handleResponse (ResponseT response , Status status , ExecutionState executionState , @ Nullable Client client ) {
1013- // Note: For INVALID_NODE_ACCOUNT_ID , we don't mark the node as unhealthy here
1016+ // Note: For INVALID_NODE_ACCOUNT , we don't mark the node as unhealthy here
10141017 // because we need to do it AFTER advancing the request, to match Go SDK behavior
1015- if (status != Status .INVALID_NODE_ACCOUNT_ID ) {
1018+ if (status != Status .INVALID_NODE_ACCOUNT ) {
10161019 node .decreaseBackoff ();
10171020 }
10181021
@@ -1042,9 +1045,9 @@ void handleResponse(ResponseT response, Status status, ExecutionState executionS
10421045 verboseLog (node );
10431046 }
10441047 case SERVER_ERROR -> {
1045- // Note: INVALID_NODE_ACCOUNT_ID is handled after advanceRequest() in execute methods
1048+ // Note: INVALID_NODE_ACCOUNT is handled after advanceRequest() in execute methods
10461049 // to match Go SDK's executionStateRetryWithAnotherNode behavior
1047- if (status != Status .INVALID_NODE_ACCOUNT_ID ) {
1050+ if (status != Status .INVALID_NODE_ACCOUNT ) {
10481051 logger .warn (
10491052 "Problem submitting request to node {} for attempt #{}, retry with new node: {}" ,
10501053 node .getAccountId (),
0 commit comments