Skip to content

Test the LRUCache implementation in SolrCloud#236

Open
sstults wants to merge 2 commits intoadsabs:mainfrom
sstults:sstults-solrcloud-lrucache
Open

Test the LRUCache implementation in SolrCloud#236
sstults wants to merge 2 commits intoadsabs:mainfrom
sstults:sstults-solrcloud-lrucache

Conversation

@sstults
Copy link

@sstults sstults commented May 23, 2025

This PR adds an abstract SolrCloud testing class that tests basic citation graph functionality. To illustrate where and how the citation graph breaks in a multi-shard environment two implementations of that class are included. The single shard class runs without issue. In the second, multi-shard, class the citation consistency check is disabled to avoid introducing failing tests to the build, but it can be re-enabled during development.

@JCRPaquin JCRPaquin self-requested a review May 27, 2025 18:42
Copy link
Member

@JCRPaquin JCRPaquin left a comment

Choose a reason for hiding this comment

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

One clarifying comment, for my own understanding

return;
if (dv.advanceExact(docId)) {
for (long ord = dv.nextOrd(); ord != SortedSetDocValues.NO_MORE_ORDS; ord = dv.nextOrd()) {
int count = dv.docValueCount();
Copy link
Member

Choose a reason for hiding this comment

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

Pardon my ignorance here, but what's the difference between iterating over the doc value count and iterating until nextOrd returns NO_MORE_ORDS?

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