Skip to content

Commit db5d9b8

Browse files
committed
DATAES-6 flag name changed to purge-data-on-shutdown from data
1 parent 73fea2b commit db5d9b8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/main/java/org/springframework/data/elasticsearch/client/NodeClientFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public boolean isSingleton() {
6363

6464
@Override
6565
public void afterPropertiesSet() throws Exception {
66-
nodeClient = (NodeClient) nodeBuilder().local(this.local).data(this.purgeDataOnShutdown).node().client();
66+
nodeClient = (NodeClient) nodeBuilder().local(this.local).data(!this.purgeDataOnShutdown).node().client();
6767
}
6868

6969
public void setLocal(boolean local) {

src/main/resources/org/springframework/data/elasticsearch/config/spring-elasticsearch-1.0.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<xsd:complexContent>
4646
<xsd:extension base="beans:identifiedType">
4747
<xsd:attribute name="local" type="xsd:boolean" default="false"/>
48-
<xsd:attribute name="purge-data-on-shutdown" type="xsd:boolean" default="false"/>
48+
<xsd:attribute name="purge-data-on-shutdown" type="xsd:boolean" default="true"/>
4949
</xsd:extension>
5050
</xsd:complexContent>
5151
</xsd:complexType>

src/test/resources/infrastructure.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55
xsi:schemaLocation="http://www.springframework.org/schema/data/elasticsearch http://www.springframework.org/schema/data/elasticsearch/spring-elasticsearch.xsd
66
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
77

8-
<elasticsearch:node-client id="client" local="true" purge-data-on-shutdown="false" />
8+
<elasticsearch:node-client id="client" local="true" purge-data-on-shutdown="true" />
99

1010
</beans>

0 commit comments

Comments
 (0)