Top
Symfoware Server V12.1.0 Application Development Guide
FUJITSU Software

5.4.2 Creating Applications during Cluster Operations

This section explains points to consider when creating applications during cluster operations.

See

Refer to the Cluster Operation Guide for information on cluster operations.

5.4.2.1 Errors when an Application Connection Switch Occurs and Corresponding Actions

If an application connection switch occurs during cluster operations, explicitly close the connection and then reestablish the connection or reexecute the application.

The table below shows errors that may occur during a switch, and the corresponding action to take.

State

Error information (*2)

Action

Node failure (server failure)
or
Symfoware Server system failure (*1)

Failure occurs during access

PGRES_FATAL_ERROR(*2)

57P01(*3)

NULL(*3)

After the switch is complete, reestablish the connection, or reexecute the application.

Accessed during node/system failure

CONNECTION_BAD(*4)

Switch to the standby node (standby server) (*1)

Switched during access

PGRES_FATAL_ERROR(*2)

57P01(*3)

NULL(*3)

Accessed during switch

CONNECTION_BAD(*4)

*1: Terms enclosed in () are terms used in database multiplexing mode.

*2: Return value of PQresultStatus().

*3: Return value of PQresultErrorField() PG_DIAG_SQLSTATE.

*4: Return value of PQstatus().


5.4.2.2 Notes when Creating Applications during Failover Operations in Shared Disk Mode

In the application, specify the same IP address as the one that was used when creating GIs or takeover network resources. This will enable the application to be executed if a state transition occurs, simply by reexecuting the application without modification.

See

Refer to "Creating Gls or Takeover Network Resources" in the Cluster Operation Guide for details.