[ 
https://issues.apache.org/jira/browse/PHOENIX-7081?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815108#comment-17815108
 ] 

ASF GitHub Bot commented on PHOENIX-7081:
-----------------------------------------

stoty commented on code in PR #1808:
URL: https://github.com/apache/phoenix/pull/1808#discussion_r1480929943


##########
phoenix-core-server/src/main/java/org/apache/phoenix/mapreduce/index/IndexUpgradeTool.java:
##########
@@ -739,7 +740,7 @@ private int startIndexRebuilds(HashMap<String, IndexInfo> 
indexInfos,
             String tenantId = indexInfo.getTenantId();
             String baseTable = indexInfo.getBaseTable();
             String schema = indexInfo.getSchemaName();
-            String outFile = "/tmp/index_rebuild_" +schema+"_"+ indexName +
+            String outFile = tmpPath + "/index_rebuild_" +schema+"_"+ 
indexName +

Review Comment:
   This one eventually becomes an HadoopFS path.
   





> Replace /tmp with {java.io.tmpdir} in tests
> -------------------------------------------
>
>                 Key: PHOENIX-7081
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-7081
>             Project: Phoenix
>          Issue Type: Bug
>          Components: core
>            Reporter: Istvan Toth
>            Assignee: Divneet Kaur
>            Priority: Minor
>              Labels: beginner, test
>
> I was running two test suites in parallel on a large VM, and it seems that 
> OrphanViewToolIT cannot handle that.
> {noformat}
> java.io.FileNotFoundException: /tmp/OrphanView.txt (No such file or 
> directory){noformat}
> Use some directory here that is under the source code's root.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to