This closes #3086
This commit is contained in:
commit
ae33b771fa
|
@ -91,7 +91,8 @@ public class Create extends InputAbstract {
|
||||||
private static final String ETC_LOGIN_CONFIG = "login.config";
|
private static final String ETC_LOGIN_CONFIG = "login.config";
|
||||||
private static final String ETC_LOGIN_CONFIG_WITH_GUEST = "etc/login-with-guest.config";
|
private static final String ETC_LOGIN_CONFIG_WITH_GUEST = "etc/login-with-guest.config";
|
||||||
private static final String ETC_LOGIN_CONFIG_WITHOUT_GUEST = "etc/login-without-guest.config";
|
private static final String ETC_LOGIN_CONFIG_WITHOUT_GUEST = "etc/login-without-guest.config";
|
||||||
public static final String ETC_REPLICATED_SETTINGS_TXT = "etc/replicated-settings.txt";
|
public static final String ETC_REPLICATED_MASTER_SETTINGS_TXT = "etc/replicated-master-settings.txt";
|
||||||
|
public static final String ETC_REPLICATED_SLAVE_SETTINGS_TXT = "etc/replicated-slave-settings.txt";
|
||||||
public static final String ETC_SHARED_STORE_SETTINGS_TXT = "etc/shared-store-settings.txt";
|
public static final String ETC_SHARED_STORE_SETTINGS_TXT = "etc/shared-store-settings.txt";
|
||||||
public static final String ETC_CLUSTER_SECURITY_SETTINGS_TXT = "etc/cluster-security-settings.txt";
|
public static final String ETC_CLUSTER_SECURITY_SETTINGS_TXT = "etc/cluster-security-settings.txt";
|
||||||
public static final String ETC_CLUSTER_SETTINGS_TXT = "etc/cluster-settings.txt";
|
public static final String ETC_CLUSTER_SETTINGS_TXT = "etc/cluster-settings.txt";
|
||||||
|
@ -590,7 +591,7 @@ public class Create extends InputAbstract {
|
||||||
|
|
||||||
if (replicated) {
|
if (replicated) {
|
||||||
clustered = true;
|
clustered = true;
|
||||||
filters.put("${replicated.settings}", readTextFile(ETC_REPLICATED_SETTINGS_TXT, filters));
|
filters.put("${replicated.settings}", readTextFile(isSlave() ? ETC_REPLICATED_SLAVE_SETTINGS_TXT : ETC_REPLICATED_MASTER_SETTINGS_TXT, filters));
|
||||||
} else {
|
} else {
|
||||||
filters.put("${replicated.settings}", "");
|
filters.put("${replicated.settings}", "");
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
|
||||||
|
<ha-policy>
|
||||||
|
<replication>
|
||||||
|
<master>
|
||||||
|
<vote-on-replication-failure>true</vote-on-replication-failure>
|
||||||
|
</master>
|
||||||
|
</replication>
|
||||||
|
</ha-policy>
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
<ha-policy>
|
<ha-policy>
|
||||||
<replication>
|
<replication>
|
||||||
<${master-slave}/>
|
<slave/>
|
||||||
</replication>
|
</replication>
|
||||||
</ha-policy>
|
</ha-policy>
|
|
@ -44,8 +44,8 @@ public class StreamClassPathTest {
|
||||||
testStream(Create.class, "etc/" + Create.ETC_BROKER_XML);
|
testStream(Create.class, "etc/" + Create.ETC_BROKER_XML);
|
||||||
testStream(Create.class, "etc/" + Create.ETC_ARTEMIS_ROLES_PROPERTIES);
|
testStream(Create.class, "etc/" + Create.ETC_ARTEMIS_ROLES_PROPERTIES);
|
||||||
testStream(Create.class, "etc/" + Create.ETC_ARTEMIS_USERS_PROPERTIES);
|
testStream(Create.class, "etc/" + Create.ETC_ARTEMIS_USERS_PROPERTIES);
|
||||||
testStream(Create.class, Create.ETC_REPLICATED_SETTINGS_TXT);
|
testStream(Create.class, Create.ETC_REPLICATED_MASTER_SETTINGS_TXT);
|
||||||
testStream(Create.class, Create.ETC_REPLICATED_SETTINGS_TXT);
|
testStream(Create.class, Create.ETC_REPLICATED_SLAVE_SETTINGS_TXT);
|
||||||
testStream(Create.class, Create.ETC_SHARED_STORE_SETTINGS_TXT);
|
testStream(Create.class, Create.ETC_SHARED_STORE_SETTINGS_TXT);
|
||||||
testStream(Create.class, Create.ETC_CLUSTER_SECURITY_SETTINGS_TXT);
|
testStream(Create.class, Create.ETC_CLUSTER_SECURITY_SETTINGS_TXT);
|
||||||
testStream(Create.class, Create.ETC_CLUSTER_SETTINGS_TXT);
|
testStream(Create.class, Create.ETC_CLUSTER_SETTINGS_TXT);
|
||||||
|
|
Loading…
Reference in New Issue