You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2019/05/28 17:20:32 UTC

[GitHub] [carbondata] BJangir commented on a change in pull request #3243: [CARBONDATA-3401] fix the java sdk create wrong carbondata filename

BJangir commented on a change in pull request #3243: [CARBONDATA-3401] fix the java sdk create wrong carbondata filename
URL: https://github.com/apache/carbondata/pull/3243#discussion_r288214704
 
 

 ##########
 File path: store/sdk/src/main/java/org/apache/carbondata/sdk/file/CarbonWriterBuilder.java
 ##########
 @@ -580,7 +580,7 @@ private void setCsvHeader(CarbonLoadModel model) {
 
   public CarbonLoadModel buildLoadModel(Schema carbonSchema)
       throws IOException, InvalidLoadOptionException {
-    timestamp = System.nanoTime();
+    timestamp = System.currentTimeMillis();
 
 Review comment:
   in Concurrency (in same JVM multiple threads) System.currentTimeMillis() can be same , which can overwrite existing carbonfile . 

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services