void-ptr974 opened a new pull request, #26148: URL: https://github.com/apache/pulsar/pull/26148
### Motivation Oxia supports routing records with `PartitionKey`. Some native secondary-index scan use cases return primary paths where follow-up reads are best routed with a hint derived from each returned path, rather than with one fixed option for the whole scan. This change adds a resolver option for that scan shape and applies it to transaction metadata index scans, where the partition key can already be derived from the record path. ### Modifications - Add `Option.PartitionKeyResolver` for deriving a concrete `PartitionKey` from a primary path discovered during a scan. - Let Oxia `scanByIndex` resolve a partition key before loading each primary record. - Pass fixed or path-derived routing hints from transaction metadata index scans. - Add multi-shard Oxia coverage for partition-key-aware index scans. ### Verifications - `./gradlew :pulsar-metadata:compileTestJava :pulsar-broker:compileJava :pulsar-metadata:checkstyleMain :pulsar-metadata:checkstyleTest :pulsar-broker:checkstyleMain -x :managed-ledger:compileTestJava` - `./gradlew :pulsar-metadata:test --tests org.apache.pulsar.metadata.OxiaPartitionKeyTest` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
