This is an automated email from the ASF dual-hosted git repository.
jackie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pinot.git
The following commit(s) were added to refs/heads/master by this push:
new d1a71d8518 Fix PerfBenchmarkRunner to skip the tmp dir (#9298)
d1a71d8518 is described below
commit d1a71d8518d5bb0c5cffb6046f50c76bd4603270
Author: Xiaotian (Jackie) Jiang <[email protected]>
AuthorDate: Mon Aug 29 23:47:36 2022 -0700
Fix PerfBenchmarkRunner to skip the tmp dir (#9298)
---
.../src/main/java/org/apache/pinot/tools/perf/PerfBenchmarkRunner.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/pinot-tools/src/main/java/org/apache/pinot/tools/perf/PerfBenchmarkRunner.java
b/pinot-tools/src/main/java/org/apache/pinot/tools/perf/PerfBenchmarkRunner.java
index c692ad2ebf..287c34c3dd 100644
---
a/pinot-tools/src/main/java/org/apache/pinot/tools/perf/PerfBenchmarkRunner.java
+++
b/pinot-tools/src/main/java/org/apache/pinot/tools/perf/PerfBenchmarkRunner.java
@@ -168,7 +168,8 @@ public class PerfBenchmarkRunner extends
AbstractBaseCommand implements Command
List<String> invertedIndexColumns, List<String> bloomFilterColumns)
throws Exception {
boolean tableConfigured = false;
- File[] segments = new File(dataDir, tableName).listFiles();
+ // Skip BaseTableDataManager._resourceTmpDir
+ File[] segments = new File(dataDir, tableName).listFiles((dir, name) ->
!name.equals("tmp"));
Preconditions.checkNotNull(segments);
for (File segment : segments) {
if (segment.isDirectory()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]