Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3264,8 +3264,11 @@ private void mirrorDeactivateToOsStore(final String indexName) throws DotDataExc
*/
@Override
public long getIndexDocumentCount(final String indexName) {
return router.readProvider().getIndexDocumentCount(
indexAPI.getNameWithClusterIDPrefix(indexName));
// Resolve the physical name through the read provider's own toPhysicalName so the OS read
// path (phases 2/3) receives the .os-tagged name. getNameWithClusterIDPrefix adds only the
// cluster prefix (no .os tag), so under OS reads the index was reported as not found.
final ContentletIndexOperations readProvider = router.readProvider();
return readProvider.getIndexDocumentCount(readProvider.toPhysicalName(indexName));
}

/**
Expand Down
Loading