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

Exception handling for fail safe #176

Closed
wants to merge 7 commits into from

Conversation

vietnguyengit
Copy link
Contributor

No description provided.

@vietnguyengit vietnguyengit marked this pull request as ready for review January 16, 2025 05:52
@vietnguyengit
Copy link
Contributor Author

Back to draft

@vietnguyengit vietnguyengit changed the base branch from main to features/6028-versioning January 17, 2025 03:48
@vietnguyengit vietnguyengit changed the base branch from features/6028-versioning to main January 17, 2025 03:49
vocabService.populateVocabsData(latestResolvedPathCollection);
refreshCaches();
// update the head if there are new versions
synchronized (this) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is AtomicReference<> better than syncrhonized(this)?

@@ -0,0 +1,9 @@
package au.org.aodn.ardcvocabs.exception;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can the branch start with the ticket id so {ticketid}-fail-safe-vocabs-refreshing

@@ -115,6 +128,29 @@ void testProcessParameterVocabs() throws IOException, JSONException {
);
}

@Test
Copy link
Contributor

Choose a reason for hiding this comment

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

Add comment on what the test case is about and why we need the logic

Add test case to show that vocabs have value, when there is a invalid load, the vocabs will not be discarded

@utas-raymondng
Copy link
Contributor

Replaced with #181

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.

2 participants