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

fix immediate errors indexing large records #46

Merged
merged 3 commits into from
Feb 28, 2024
Merged

Conversation

vietnguyengit
Copy link
Contributor

No description provided.

Copy link
Contributor Author

@vietnguyengit vietnguyengit left a comment

Choose a reason for hiding this comment

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

remove unused var

Copy link
Contributor

@utas-raymondng utas-raymondng left a comment

Choose a reason for hiding this comment

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

Please check the comment

@@ -158,12 +164,12 @@ public Iterable<String> getAllMetadataRecords() {
// TODO: Can the elastic index not update after insert dataset into GeoNetwork?
final SearchResponse<ObjectNode> response = gn4ElasticClient.search(GEONETWORK_ALL_UUID, ObjectNode.class);

if(Objects.requireNonNull(response.hits().hits().size() != 0)) {
if(!response.hits().hits().isEmpty()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need a null check?

Copy link
Contributor

@utas-raymondng utas-raymondng left a comment

Choose a reason for hiding this comment

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

LGTM

@vietnguyengit vietnguyengit merged commit ff5d07f into main Feb 28, 2024
2 checks passed
@vietnguyengit vietnguyengit deleted the patch_mapper branch February 28, 2024 05:33
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