activemq icon indicating copy to clipboard operation
activemq copied to clipboard

Added destination field to Job

Open shikhar97gupta opened this issue 3 years ago • 4 comments

JIRA issue: https://issues.apache.org/jira/projects/AMQ/issues/AMQ-9166?filter=allopenissues&orderby=created+DESC%2C+priority+DESC%2C+updated+DESC

shikhar97gupta avatar Nov 18 '22 13:11 shikhar97gupta

Hi @shikhar97gupta -- I'll start reviewing the PR this weekend.

Please review: https://community.apache.org/newcomers/index.html

mattrpav avatar Nov 18 '22 14:11 mattrpav

How to resolve these check errors?

I am unable to replicate error on running the tests with the same command as in the checks tab (mvn -B -e -fae test).

The activemq code clone on my system gives a different error (fails a broker test) on running the same command compared to the error mentioned in the 'Log Tail' of error checks tab.

shikhar97gupta avatar Nov 22 '22 18:11 shikhar97gupta

@mattrpav Are these changes fine? Also, I think I have pushed commits in a bad way in this PR while trying squash multiple commits.....should I create a new PR?

shikhar97gupta avatar Dec 25 '22 18:12 shikhar97gupta

@shikhar97gupta these changes are looking good! One final request -- move the 'with destination name' to a separate method. This will ensure that users that use the existing method do not have any performance impact when viewing scheduled jobs.

Example:

// Existing method
public TabularData getAllJobs(String startTime, String finishTime) throws Exception {
   return getAllJobs(startTime, finishTime, false);
}

// New method
public TabularData getAllJobs(String startTime, String finishTime, boolean includeDestinationName) throws Exception {
   ...
//    do the work here  
   ...
}

mattrpav avatar Jan 14 '23 20:01 mattrpav

@shikhar97gupta these changes are looking good! One final request -- move the 'with destination name' to a separate method. This will ensure that users that use the existing method do not have any performance impact when viewing scheduled jobs.

@mattrpav Applied this change for all 3 methods separately -- getAllJobs(), getAllJobs(String, String) and getNextScheduleJobs()

shikhar97gupta avatar Feb 12 '24 17:02 shikhar97gupta

@shikhar97gupta looks good! If you can get the last housekeeping tasks done, we'll include this change in the next set of 5.17.x, 5.18.x and 6.1.x releases.

  • [ ] Rebase your PR off of 'main'
  • [ ] Add a unit test to validate the destination name field is working correctly in this test:
activemq-unit-tests/src/test/java/org/apache/activemq/broker/scheduler/JobSchedulerJmxManagementTests.java

mattrpav avatar Feb 27 '24 21:02 mattrpav