|
@@ -564,13 +564,13 @@ public class SQLFederationStateStore implements FederationStateStore {
|
|
|
// Check the ROWCOUNT value, if it is equal to 0 it means the call
|
|
|
// did not add a new application into FederationStateStore
|
|
|
if (cstmt.getInt(4) == 0) {
|
|
|
- String errMsg = "The application " + appId
|
|
|
- + " was not insert into the StateStore";
|
|
|
- FederationStateStoreUtils.logAndThrowStoreException(LOG, errMsg);
|
|
|
- }
|
|
|
- // Check the ROWCOUNT value, if it is different from 1 it means the call
|
|
|
- // had a wrong behavior. Maybe the database is not set correctly.
|
|
|
- if (cstmt.getInt(4) != 1) {
|
|
|
+ LOG.info(
|
|
|
+ "The application {} was not inserted in the StateStore because it"
|
|
|
+ + " was already present in SubCluster {}",
|
|
|
+ appId, subClusterHome);
|
|
|
+ } else if (cstmt.getInt(4) != 1) {
|
|
|
+ // Check the ROWCOUNT value, if it is different from 1 it means the
|
|
|
+ // call had a wrong behavior. Maybe the database is not set correctly.
|
|
|
String errMsg = "Wrong behavior during the insertion of SubCluster "
|
|
|
+ subClusterId;
|
|
|
FederationStateStoreUtils.logAndThrowStoreException(LOG, errMsg);
|