jackylk commented on a change in pull request #3324: [HOTFIX] Fix task id in
FileFormat write
URL: https://github.com/apache/carbondata/pull/3324#discussion_r303194845
##########
File path:
core/src/main/java/org/apache/carbondata/core/util/CarbonThreadFactory.java
##########
@@ -49,7 +49,7 @@ public CarbonThreadFactory(String name, boolean withTime) {
@Override public Thread newThread(Runnable r) {
final Thread thread = defaultFactory.newThread(r);
if (withTime) {
- thread.setName(name + "_" + System.currentTimeMillis());
+ thread.setName(name + "_" + System.nanoTime());
Review comment:
Here it is better to use the generated task number as thread id, so that
debug is easier
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services