kunal642 commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r465476995 ########## File path: core/src/main/java/org/apache/carbondata/core/datastore/filesystem/LocalCarbonFile.java ########## @@ -485,4 +486,30 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(file.getAbsolutePath()); } + + @Override + public List<CarbonFile> listDirs() throws IOException { + if (!file.isDirectory()) { + return new ArrayList<CarbonFile>(); + } + Collection<File> fileCollection = FileUtils.listFilesAndDirs(file, + DirectoryFileFilter.DIRECTORY, null); + if (fileCollection.isEmpty()) { + return new ArrayList<CarbonFile>(); + } + List<CarbonFile> carbonFiles = new ArrayList<CarbonFile>(); + for (File file : fileCollection) { + if (file.isDirectory()) { + File[] files = file.listFiles(); Review comment: This is a generic API.. i think the output for this should be "fileCollection" i.e listing only once...if you want to list the subfolder then better to add a recursive parameter or pass a pattern like /tmp/*/* so that it can list the folders with 2 depth. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
kunal642 commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r465477710 ########## File path: integration/spark/src/main/scala/org/apache/carbondata/indexserver/IndexServer.scala ########## @@ -316,4 +324,17 @@ object IndexServer extends ServerInterface { Array(new Service("security.indexserver.protocol.acl", classOf[ServerInterface])) } } + + def startAgingFolders(): Unit = { + val runnable = new Runnable() { + def run() { + val age = System.currentTimeMillis() - agePeriod.toLong + CarbonUtil.agingTempFolderForIndexServer(age) + LOGGER.info(s"Complete age temp folder ${CarbonUtil.getIndexServerTempPath}") + } + } + val ags: ScheduledExecutorService = Executors.newSingleThreadScheduledExecutor + ags.scheduleAtFixedRate(runnable, 1000, 3600000, TimeUnit.MICROSECONDS) Review comment: the unit you used is microseconds not milliseconds, better to keep it as 5 min. 3s very less duration ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
MarvinLitt commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r468484427 ########## File path: integration/spark/src/main/scala/org/apache/carbondata/indexserver/IndexServer.scala ########## @@ -316,4 +324,17 @@ object IndexServer extends ServerInterface { Array(new Service("security.indexserver.protocol.acl", classOf[ServerInterface])) } } + + def startAgingFolders(): Unit = { + val runnable = new Runnable() { + def run() { + val age = System.currentTimeMillis() - agePeriod.toLong + CarbonUtil.agingTempFolderForIndexServer(age) + LOGGER.info(s"Complete age temp folder ${CarbonUtil.getIndexServerTempPath}") + } + } + val ags: ScheduledExecutorService = Executors.newSingleThreadScheduledExecutor + ags.scheduleAtFixedRate(runnable, 1000, 3600000, TimeUnit.MICROSECONDS) Review comment: oh sorry will change to milliseconds, how about keep it as 3hours. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
MarvinLitt commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r469241896 ########## File path: core/src/main/java/org/apache/carbondata/core/datastore/filesystem/LocalCarbonFile.java ########## @@ -485,4 +486,30 @@ public boolean equals(Object o) { public int hashCode() { return Objects.hash(file.getAbsolutePath()); } + + @Override + public List<CarbonFile> listDirs() throws IOException { + if (!file.isDirectory()) { + return new ArrayList<CarbonFile>(); + } + Collection<File> fileCollection = FileUtils.listFilesAndDirs(file, + DirectoryFileFilter.DIRECTORY, null); + if (fileCollection.isEmpty()) { + return new ArrayList<CarbonFile>(); + } + List<CarbonFile> carbonFiles = new ArrayList<CarbonFile>(); + for (File file : fileCollection) { + if (file.isDirectory()) { + File[] files = file.listFiles(); Review comment: okay,done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
MarvinLitt commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r469242044 ########## File path: integration/spark/src/main/scala/org/apache/carbondata/indexserver/IndexServer.scala ########## @@ -316,4 +324,17 @@ object IndexServer extends ServerInterface { Array(new Service("security.indexserver.protocol.acl", classOf[ServerInterface])) } } + + def startAgingFolders(): Unit = { + val runnable = new Runnable() { + def run() { + val age = System.currentTimeMillis() - agePeriod.toLong + CarbonUtil.agingTempFolderForIndexServer(age) + LOGGER.info(s"Complete age temp folder ${CarbonUtil.getIndexServerTempPath}") + } + } + val ags: ScheduledExecutorService = Executors.newSingleThreadScheduledExecutor + ags.scheduleAtFixedRate(runnable, 1000, 3600000, TimeUnit.MICROSECONDS) Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-672935234 Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3703/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-672936291 Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1964/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
kunal642 commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r469700368 ########## File path: integration/spark/src/test/scala/org/apache/indexserver/IndexServerTest.scala ########## @@ -0,0 +1,56 @@ +package org.apache.indexserver Review comment: Please add header ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
MarvinLitt commented on a change in pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#discussion_r469870300 ########## File path: integration/spark/src/test/scala/org/apache/indexserver/IndexServerTest.scala ########## @@ -0,0 +1,56 @@ +package org.apache.indexserver Review comment: done ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-673462582 Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3710/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-673478731 Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/1971/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
kunal642 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-675237567 retest this please ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-675279974 Build Success with Spark 2.3.4, Please check CI http://121.244.95.60:12545/job/ApacheCarbonPRBuilder2.3/3752/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
CarbonDataQA1 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-675280659 Build Success with Spark 2.4.5, Please check CI http://121.244.95.60:12545/job/ApacheCarbon_PR_Builder_2.4.5/2011/ ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
kunal642 commented on pull request #3855: URL: https://github.com/apache/carbondata/pull/3855#issuecomment-675841436 LGTM ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
In reply to this post by GitBox
asfgit closed pull request #3855: URL: https://github.com/apache/carbondata/pull/3855 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [hidden email] |
Free forum by Nabble | Edit this page |