Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PAYARA-2871 Improve listing batch jobs memory usage in admin console #2965

Merged
merged 17 commits into from
Jul 23, 2018

Conversation

MeroRai
Copy link
Member

@MeroRai MeroRai commented Jul 17, 2018

No description provided.

@MeroRai MeroRai added this to the Payara 5.183 milestone Jul 17, 2018
@MeroRai MeroRai self-assigned this Jul 17, 2018
@MeroRai MeroRai requested a review from MattGill98 July 18, 2018 10:05
@Pandrex247
Copy link
Member

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test failed!

@Pandrex247
Copy link
Member

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

schema = batchRuntimeConfiguration.getSchemaName();
tableNames = getSharedTableMap();
schemaTableNames = getSharedSchemaTableMap();

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting has gone a bit wonky here.

Copy link
Contributor

@MattGill98 MattGill98 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks overall very good! Just one or two things that need addressing.

*/
public class BatchHandlers {

private static final int DEFAULT_OFFSET_VALUE = 20;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small thing, but for readability can this be renamed to DEFAULT_OFFSET_INCREMENT or something like that? It doesn't function as a default offset, but as an increment value

*/

<f:verbatim>
<script type="text/javascript">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an unusual way of adding CSS. Usually this would be done by using CSS selectors carefully, is this not possible here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have looked at different ways to do it, but IMO this is the cleanest way and makes it easily maintainable too.

@@ -79,24 +79,39 @@
@Param(primary = true, optional = true)
String jobName;

@Param(name = "offset", optional = true, defaultValue = "0")
String offSetValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure to add validation to these to prevent negative errors etc! May require adding to both the proxy and the main command. Will probably need a rework sometime in the future, but I would just validate both for now.

@MeroRai
Copy link
Member Author

MeroRai commented Jul 23, 2018

Jenkins test please

@payara-ci
Copy link
Contributor

Quick build and test passed!

@MattGill98 MattGill98 merged commit 8d19168 into payara:master Jul 23, 2018
MeroRai pushed a commit to MeroRai/Payara that referenced this pull request Aug 20, 2018
PAYARA-2871 Improve listing batch jobs memory usage in admin console
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants