}
@Test
public void testSetMultipleStatement() throws Exception {
SQLResponse response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer)response.rows()[0][0], is(CrateSettings.STATS_OPERATIONS_LOG_SIZE.defaultValue()));
assertThat((Boolean)response.rows()[0][1], is(CrateSettings.STATS_ENABLED.defaultValue()));
response = executor.exec("set global persistent stats.operations_log_size=1024, stats.enabled=false");
assertThat(response.rowCount(), is(1L));
response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer)response.rows()[0][0], is(1024));
assertThat((Boolean)response.rows()[0][1], is(false));
response = executor.exec("reset global stats.operations_log_size, stats.enabled");
assertThat(response.rowCount(), is(1L));
waitNoPendingTasksOnAll();
response = executor.exec(
"select settings['stats']['operations_log_size'], settings['stats']['enabled'] from sys.cluster");
assertThat(response.rowCount(), is(1L));
assertThat((Integer)response.rows()[0][0], is(CrateSettings.STATS_OPERATIONS_LOG_SIZE.defaultValue()));
assertThat((Boolean)response.rows()[0][1], is(CrateSettings.STATS_ENABLED.defaultValue()));
}