Skip to content

Conversation

@pfurio
Copy link
Member

@pfurio pfurio commented Sep 22, 2025

No description provided.

@halender
Copy link
Contributor

@pfurio pfurio requested a review from j-coll September 22, 2025 10:25
organizationDBAdaptorFactory.createAllCollections();
organizationDBAdaptorFactory.createIndexes();
} catch (Exception e) {
logger.error("Could not create collections/indexes for Organization {}: {}", organization.getId(), e.getMessage(), e);
Copy link
Member

Choose a reason for hiding this comment

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

How bad would this exception be? Should we prevent the organization creation somehow if it fails?

What about a "sync" option, so this can be executed synchronously from the command line?

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 don't think we should prevent the Organization from being created if that ever happens (in almost ten years those 2 lines have never failed). In any case, you can always call manually to the cli to generate any missing indexes.
opencga-admin.sh catalog index

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants