[ https://issues.apache.org/jira/browse/HIVE-21194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16757945#comment-16757945 ]
Hive QA commented on HIVE-21194: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12957197/image-2019-02-01-12-44-22-331.png {color:red}ERROR:{color} -1 due to build exiting with an error Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/15874/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/15874/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-15874/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Tests exited with: NonZeroExitCodeException Command 'bash /data/hiveptest/working/scratch/source-prep.sh' failed with exit status 1 and output '+ date '+%Y-%m-%d %T.%3N' 2019-02-01 04:03:49.322 + [[ -n /usr/lib/jvm/java-8-openjdk-amd64 ]] + export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 + JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 + export PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games + PATH=/usr/lib/jvm/java-8-openjdk-amd64/bin/:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games + export 'ANT_OPTS=-Xmx1g -XX:MaxPermSize=256m ' + ANT_OPTS='-Xmx1g -XX:MaxPermSize=256m ' + export 'MAVEN_OPTS=-Xmx1g ' + MAVEN_OPTS='-Xmx1g ' + cd /data/hiveptest/working/ + tee /data/hiveptest/logs/PreCommit-HIVE-Build-15874/source-prep.txt + [[ false == \t\r\u\e ]] + mkdir -p maven ivy + [[ git = \s\v\n ]] + [[ git = \g\i\t ]] + [[ -z master ]] + [[ -d apache-github-source-source ]] + [[ ! -d apache-github-source-source/.git ]] + [[ ! -d apache-github-source-source ]] + date '+%Y-%m-%d %T.%3N' 2019-02-01 04:03:49.325 + cd apache-github-source-source + git fetch origin + git reset --hard HEAD HEAD is now at f2e10f2 HIVE-21029: External table replication for existing deployments running incremental replication (Sankar Hariappan, reviewed by Mahesh Kumar Behera) + git clean -f -d Removing ${project.basedir}/ Removing itests/${project.basedir}/ Removing standalone-metastore/metastore-server/src/gen/ + git checkout master Already on 'master' Your branch is up-to-date with 'origin/master'. + git reset --hard origin/master HEAD is now at f2e10f2 HIVE-21029: External table replication for existing deployments running incremental replication (Sankar Hariappan, reviewed by Mahesh Kumar Behera) + git merge --ff-only origin/master Already up-to-date. + date '+%Y-%m-%d %T.%3N' 2019-02-01 04:03:53.607 + rm -rf ../yetus_PreCommit-HIVE-Build-15874 + mkdir ../yetus_PreCommit-HIVE-Build-15874 + git gc + cp -R . ../yetus_PreCommit-HIVE-Build-15874 + mkdir /data/hiveptest/logs/PreCommit-HIVE-Build-15874/yetus + patchCommandPath=/data/hiveptest/working/scratch/smart-apply-patch.sh + patchFilePath=/data/hiveptest/working/scratch/build.patch + [[ -f /data/hiveptest/working/scratch/build.patch ]] + chmod +x /data/hiveptest/working/scratch/smart-apply-patch.sh + /data/hiveptest/working/scratch/smart-apply-patch.sh /data/hiveptest/working/scratch/build.patch fatal: unrecognized input fatal: unrecognized input fatal: unrecognized input The patch does not appear to apply with p0, p1, or p2 + result=1 + '[' 1 -ne 0 ']' + rm -rf yetus_PreCommit-HIVE-Build-15874 + exit 1 ' {noformat} This message is automatically generated. ATTACHMENT ID: 12957197 - PreCommit-HIVE-Build > DruidStorageHandler should set a version of segment to UTC > ---------------------------------------------------------- > > Key: HIVE-21194 > URL: https://issues.apache.org/jira/browse/HIVE-21194 > Project: Hive > Issue Type: Bug > Components: Druid integration > Reporter: Seung-Hyun Cheong > Assignee: Seung-Hyun Cheong > Priority: Minor > Attachments: image-2019-02-01-12-34-44-731.png, > image-2019-02-01-12-44-22-331.png > > > h1. Exception while running a KillTask > {code:java} > 2019-01-30T16:58:35,354 ERROR [task-runner-0-priority-0] > io.druid.indexing.overlord.ThreadPoolTaskRunner - Exception while running > task[KillTask{id=kill_upload_2018-12-31T00:00:00.000Z_2019-02-05T00:00:00.000Z_2019-02-01T16:52:31.851Z, > type=kill, dataSource=upload}] > io.druid.java.util.common.ISE: WTF?! Unused > segment[upload_2019-01-01T00:00:00.000Z_2019-01-02T00:00:00.000Z_2019-01-31T01:12:32.289+09:00] > has version[2019-01-31T01:12:32.289+09:00] > task > version[2019-01-30T16:58:29.992Z] > at io.druid.indexing.common.task.KillTask.run(KillTask.java:94) > ~[druid-indexing-service-0.12.1.3.1.0.0-78.jar:0.12.1.3.1.0.0-78] > at > io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:444) > [druid-indexing-service-0.12.1.3.1.0.0-78.jar:0.12.1.3.1.0.0-78] > at > io.druid.indexing.overlord.ThreadPoolTaskRunner$ThreadPoolTaskRunnerCallable.call(ThreadPoolTaskRunner.java:416) > [druid-indexing-service-0.12.1.3.1.0.0-78.jar:0.12.1.3.1.0.0-78] > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > [?:1.8.0_112] > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > [?:1.8.0_112] > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > [?:1.8.0_112] > at java.lang.Thread.run(Thread.java:745) [?:1.8.0_112] > {code} > > h1. Reason > h3. KillTask compares versions > [KillTask.java#L88|https://github.com/apache/incubator-druid/blob/master/indexing-service/src/main/java/org/apache/druid/indexing/common/task/KillTask.java#L88] > {code:java} > if (unusedSegment.getVersion().compareTo(myLock.getVersion()) > 0) { > throw new ISE( > "WTF?! Unused segment[%s] has version[%s] > task version[%s]", > unusedSegment.getId(), > unusedSegment.getVersion(), > myLock.getVersion() > ); > } > {code} > > h3. KillTask version (UTC, e.g. "2019-01-30T16:58:29.992Z") > [TaskLockbox.java#L593|https://github.com/apache/incubator-druid/blob/8eae26fd4e7572060d112864dd3d5f6a865b9c89/indexing-service/src/main/java/org/apache/druid/indexing/overlord/TaskLockbox.java#L593] > {code:java} > version = DateTimes.nowUtc().toString(); > {code} > > h3. Segment version (UTC+9, e.g. "2019-01-31T01:12:32.289+09:00") > [DruidStorageHandler.java#L755|https://github.com/apache/hive/blob/master/druid-handler/src/java/org/apache/hadoop/hive/druid/DruidStorageHandler.java#L755] > {code:java} > jobProperties.put(DruidConstants.DRUID_SEGMENT_VERSION, new > DateTime().toString()); > {code} > > > h1. Suggestion > h3. Because druid uses UTC only, DruidStorageHandler should set a version of > segment to UTC. > > > -- This message was sent by Atlassian JIRA (v7.6.3#76005)