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

EVA-3570 Add jobs for recovering blocks through recovery agent for category ss and rs #447

Merged
merged 7 commits into from
May 14, 2024

Conversation

nitin-ebi
Copy link
Contributor

No description provided.

@nitin-ebi nitin-ebi self-assigned this May 10, 2024
@nitin-ebi nitin-ebi requested review from tcezard and apriltuesday May 10, 2024 12:26
@nitin-ebi nitin-ebi force-pushed the add-jobs-for-recovery-agent branch from 878025c to e7a4b58 Compare May 10, 2024 12:40
clusteredVariantEntityList.add(entity);
}

// Entries for 2nd block
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// Entries for 2nd block
// Entries for 2nd block -- Missing 6 RS

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

Copy link
Contributor

@apriltuesday apriltuesday left a comment

Choose a reason for hiding this comment

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

Great work, really appreciate the detailed explanations in the tests.
A couple naming suggestions (of course) but otherwise looks good to me.

@@ -1,3 +1,4 @@
recovery.cutoff.days=14
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it also work to leave the property empty when it's not needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we don't need to provide this for other jobs.


import java.time.LocalDateTime;

public class MonotonicAccessionRecoveryAgentCategoryRSService {
Copy link
Contributor

Choose a reason for hiding this comment

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

Just because we promised we'd argue about names... what about something shorter like RSAccessionRecoveryService? And analogous naming throughout the other classes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated

VALUES (4, 'test-instance-recover-state-00', 'rs', 3000000090, 3000000089, 3000000119, true, '1970-01-01 00:00:00');

INSERT INTO contiguous_id_blocks
VALUES (5, 'test-instance-recover-state-00', 'rs', 3000000120, 3000000119, 3000000149, true, '2099-01-01 00:00:00');
Copy link
Contributor

Choose a reason for hiding this comment

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

Can't wait for this test to fail in 2100...

(Just kidding, if the code we write lasts that long I'll be impressed...)


@Test
@DirtiesContext
public void testContiguousBlocksAreReleasedInCaseOfJobFailures() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this the right test name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected


@Test
@DirtiesContext
public void testContiguousBlocksAreReleasedInCaseOfJobFailures() throws Exception {
Copy link
Contributor

Choose a reason for hiding this comment

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

As above - think this test name should be different...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

corrected

@nitin-ebi nitin-ebi force-pushed the add-jobs-for-recovery-agent branch from fca29b0 to 7b2780a Compare May 14, 2024 12:27
@nitin-ebi nitin-ebi merged commit cf8bf77 into EBIvariation:master May 14, 2024
1 check passed
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.

3 participants