Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ public class IoTDBCurrentQueriesIT {

@BeforeClass
public static void setUp() throws Exception {
EnvFactory.getEnv().getConfig().getDataNodeConfig().setQueryCostStatWindow(1);
EnvFactory.getEnv().initClusterEnvironment();
createUser("test", "test123123456");
}
Expand All @@ -81,6 +80,7 @@ public void testCurrentQueries() {
EnvFactory.getEnv().getConnection(ADMIN_NAME, ADMIN_PWD, BaseEnv.TABLE_SQL_DIALECT);
Statement statement = connection.createStatement();
statement.execute("USE information_schema");
statement.execute("set configuration \"query_cost_stat_window\"='1'");

// 1. query current_queries table
String sql = "SELECT * FROM current_queries";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2034,6 +2034,12 @@ public synchronized void loadHotModifiedProps(TrimProperties properties)
properties.getProperty(
"slow_query_threshold",
ConfigurationFileUtils.getConfigurationDefaultValue("slow_query_threshold"))));
// update query_cost_stat_window
conf.setQueryCostStatWindow(
Integer.parseInt(
properties.getProperty(
"query_cost_stat_window",
ConfigurationFileUtils.getConfigurationDefaultValue("query_cost_stat_window"))));
// update select into operation max buffer size
conf.setIntoOperationBufferSizeInByte(
Long.parseLong(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ public String getUser() {
return context.getSession().getUserName();
}

@Override
public String getClientHostname() {
return context.getCliHostname();
}
Expand Down
Loading