Skip to content

Conversation

@jhiemstrawisc
Copy link
Member

@jhiemstrawisc jhiemstrawisc commented Nov 4, 2024

This PR tries to clarify some of the language surrounding these configuration options and removes mention of Xrootd.Mount which has no effect on caches.

Closes #1664

@jhiemstrawisc
Copy link
Member Author

@turetske I'm also requesting your review on this PR since it now modifies code and not just documentation.

This commit introduces `Cache.StorageLocation` and `Cache.NamespaceLocation`,
two new variables used to correct some of the behavior around setting locations for
the cache's namespace, meta, and data directories.

One crucial change here is that the data/meta directories are no longer exported under
the namespace directory, which previously resulted in exposing these internal file
representations to users who new to look for them.

This also ties the namespace/meta/data directories to `Cache.StorageLocation`, allowing
you to set all three to the same directory through a single config.
Turns out some tests don't call init config, so they weren't handling the deprecated config. This updates the test to use the new params so they set the correct values.
…ter deref

Another issue fixed by a different commit exposed that failure to stop the test
on this error generates a nil pointer dereference when we try to check the
contents of a non-existent error. Using require.Error stops the test before
reaching the dereference.
Copy link
Collaborator

@turetske turetske left a comment

Choose a reason for hiding this comment

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

Minor comments on some of the comments, but otherwise seems to test correctly with both old and new naming system.

@jhiemstrawisc jhiemstrawisc merged commit ee6adbe into PelicanPlatform:main Nov 27, 2024
11 checks 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.

Docs for Cache.Datalocations, Cache.MetaLocations and Xrootd.Mount are confusing and conflicting

2 participants