[ https://issues.apache.org/jira/browse/ATLAS-4754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17801682#comment-17801682 ]
ASF subversion and git services commented on ATLAS-4754: -------------------------------------------------------- Commit 531fea4d76717093c8d1ff22f65d7bd3606ba51b in atlas's branch refs/heads/master from Mandar Ambawane [ https://gitbox.apache.org/repos/asf?p=atlas.git;h=531fea4d7 ] ATLAS-4754 : Download Search with Basic Search gives java.io.FileNotFoundException Signed-off-by: Mandar Ambawane <mandar.ambaw...@freestoneinfotech.com> > Download Search with Basic Search gives java.io.FileNotFoundException > --------------------------------------------------------------------- > > Key: ATLAS-4754 > URL: https://issues.apache.org/jira/browse/ATLAS-4754 > Project: Atlas > Issue Type: Bug > Components: atlas-core > Reporter: Abhishek Pal > Assignee: Mandar Ambawane > Priority: Major > > Currently when trying to download search results, the download task is stuck > on pending. > Upon checking the logs the following error is being seen: > {code:java|title=application.log} > 2023-05-17 22:09:47,321 INFO - [etp1158258131-199 - > a6302f98-7e3d-4cbc-bd06-883fbfa21d11:] ~ TaskManagement: Processing stats: > total=1, sinceLastStatsReport=2 completedWithErrors=1, succeded=0 > (TaskExecutor$TaskLogger:166) > 2023-05-17 22:09:47,330 ERROR - [atlas-task-0-etp1158258131-282 - > b9a5a4ef-6e3f-440c-9f65-d446a6da9720:] ~ Task: > f4e26459-746f-4f31-90db-144c31a9696f: Error performing task! > (SearchResultDownloadTask:126) > java.io.FileNotFoundException: > <atlas-library>/search_result_downloads/<user>/<filename>.csv (No such file > or directory) > at java.base/java.io.FileOutputStream.open0(Native Method) > at java.base/java.io.FileOutputStream.open(FileOutputStream.java:298) > at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:237) > at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:187) > at java.base/java.io.FileWriter.<init>(FileWriter.java:96) > at > org.apache.atlas.repository.store.graph.v2.tasks.searchdownload.SearchResultDownloadTask.generateCSVFileFromSearchResult(SearchResultDownloadTask.java:185) > at > org.apache.atlas.repository.store.graph.v2.tasks.searchdownload.SearchResultDownloadTask.run(SearchResultDownloadTask.java:163) > at > org.apache.atlas.repository.store.graph.v2.tasks.searchdownload.SearchResultDownloadTask.perform(SearchResultDownloadTask.java:122) > at org.apache.atlas.tasks.AbstractTask.run(AbstractTask.java:33) > at > org.apache.atlas.tasks.TaskExecutor$TaskConsumer.performTask(TaskExecutor.java:150) > at org.apache.atlas.tasks.TaskExecutor$TaskConsumer.run(TaskExecutor.java:109) > at > java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) > at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) > at > java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) > at java.base/java.lang.Thread.run(Thread.java:834){code} > h2. Steps to Reproduce: > h4. Create type: test_download_entity > {code:java|title=<atlas-host>/api/atlas/v2/types/typedefs} > { > "enumDefs": [], > "structDefs": [], > "classificationDefs": [], > "entityDefs": [ > { > "attributeDefs": [ > { > "name": "name", > "typeName": "string", > "isOptional": true, > "cardinality": "SINGLE", > "valuesMinCount": 0, > "valuesMaxCount": 1, > "isUnique": false, > "isIndexable": false > }, > { > "name": "type_str", > "typeName": "string", > "isOptional": true, > "cardinality": "SINGLE", > "valuesMinCount": 0, > "valuesMaxCount": 1, > "isUnique": false, > "isIndexable": false > } > ], > "description": "description", > "name": "test_download_entity", > "guid": "-32062751815011", > "category": "ENTITY", > "superTypes": [] > } > ], > "relationshipDefs": [], > "businessMetadataDefs": [] > } > {code} > h4. Create entity of type: test_download_entity > {code:java|title=<atlas-host>/api/atlas/v2/entity/bulk} > { > "entities": [{ > "typeName": "test_download_entity", > "attributes": { > "name": "downloadable_entity_1", > "type_str": "str1" > }, > "guid": "-08727943682221" > }, > { > "typeName": "test_download_entity", > "attributes": { > "name": "downloadable_entity_2", > "type_str": "str2" > }, > "guid": "-08727943682222" > } > ] > }{code} > h4. Search for type "test_download_entity" > Now on the host if we search for the type " > test_download_entity" and then download the search results, we will see the > entity being queued for download, but then it stays in the pending state. > > {color:red}*Note*:{color} The text marked in <> (angular brackets) are > placeholders. Ex: <atlas-host> is placeholder for the Atlas URL > -- This message was sent by Atlassian Jira (v8.20.10#820010)