[ https://issues.apache.org/jira/browse/HIVE-23098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17069470#comment-17069470 ]
Hive QA commented on HIVE-23098: -------------------------------- Here are the results of testing the latest attachment: https://issues.apache.org/jira/secure/attachment/12998027/HIVE-23098.1.patch {color:red}ERROR:{color} -1 due to no test(s) being added or modified. {color:red}ERROR:{color} -1 due to 6 failed/errored test(s), 18089 tests executed *Failed tests:* {noformat} TestJdbcWithMiniLlapArrow - did not produce a TEST-*.xml file (likely timed out) (batchId=292) TestJdbcWithMiniLlapVectorArrow - did not produce a TEST-*.xml file (likely timed out) (batchId=292) TestRestrictedList - did not produce a TEST-*.xml file (likely timed out) (batchId=292) TestServiceDiscovery - did not produce a TEST-*.xml file (likely timed out) (batchId=292) TestTriggersMoveWorkloadManager - did not produce a TEST-*.xml file (likely timed out) (batchId=292) TestTriggersTezSessionPoolManager - did not produce a TEST-*.xml file (likely timed out) (batchId=292) {noformat} Test results: https://builds.apache.org/job/PreCommit-HIVE-Build/21313/testReport Console output: https://builds.apache.org/job/PreCommit-HIVE-Build/21313/console Test logs: http://104.198.109.242/logs/PreCommit-HIVE-Build-21313/ Messages: {noformat} Executing org.apache.hive.ptest.execution.TestCheckPhase Executing org.apache.hive.ptest.execution.PrepPhase Executing org.apache.hive.ptest.execution.YetusPhase Executing org.apache.hive.ptest.execution.ExecutionPhase Executing org.apache.hive.ptest.execution.ReportingPhase Tests exited with: TestsFailedException: 6 tests failed {noformat} This message is automatically generated. ATTACHMENT ID: 12998027 - PreCommit-HIVE-Build > Allow Operation assertState to Accept a Collection > -------------------------------------------------- > > Key: HIVE-23098 > URL: https://issues.apache.org/jira/browse/HIVE-23098 > Project: Hive > Issue Type: Improvement > Reporter: David Mollitor > Assignee: David Mollitor > Priority: Minor > Attachments: HIVE-23098.1.patch > > > {code:java|title=Operation.java} > protected final void assertState(List<OperationState> states) throws > HiveSQLException { > if (!states.contains(state)) { > throw new HiveSQLException("Expected states: " + states.toString() + ", > but found " > + this.state); > } > this.lastAccessTime = System.currentTimeMillis(); > } > /*********************/ > public void someMethod() { > assertState(new > ArrayList<OperationState>(Arrays.asList(OperationState.FINISHED))); > } > {code} > By allowing {{assertState}} to accept a {{Collection}}, one can save an > allocation and simplify the code: > {code:java} > assertState(Collections.singleton(OperationState.FINISHED)); > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005)