[
https://issues.apache.org/jira/browse/SOLR-7147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Shalin Shekhar Mangar updated SOLR-7147:
----------------------------------------
Attachment: SOLR-7147.patch
Here's a patch which implements the ideas that Hoss outlined:
TrackingShardHandlerFactory has the following API:
{code}
public synchronized void setTrackingQueue(Queue<ShardRequestAndParams> queue) {
this.queue = queue;
}
public synchronized Queue<ShardRequestAndParams> getTrackingQueue() {
return queue;
}
public synchronized boolean isTracking() {
return queue != null;
}
{code}
Then there's a RequestTrackingQueue which has the following:
{code}
public ShardRequestAndParams getShardRequestByPurpose(ZkStateReader
zkStateReader, String collectionName, String shardId, int purpose);
public List<ShardRequestAndParams> getShardRequests(ZkStateReader
zkStateReader, String collectionName, String shardId);
public Map<String, List<ShardRequestAndParams>> getAllRequests();
public List<ShardRequestAndParams> getCollectionAdminRequests();
public List<ShardRequestAndParams> getCoreAdminRequests();
{code}
The getCollectionAdminRequests() and getCoreAdminRequests() methods are not
implemented in this patch.
> Introduce new TrackingShardHandlerFactory for monitoring what requests are
> sent to shards during tests
> ------------------------------------------------------------------------------------------------------
>
> Key: SOLR-7147
> URL: https://issues.apache.org/jira/browse/SOLR-7147
> Project: Solr
> Issue Type: Improvement
> Reporter: Hoss Man
> Attachments: SOLR-7147.patch
>
>
> this is an idea shalin proposed as part of the testing for SOLR-7128...
> bq. I created a TrackingShardHandlerFactory which can record shard requests
> sent from any node. There are a few helper methods to get requests by shard
> and by purpose.
> ...
> bq. I will likely move the TrackingShardHandlerFactory into its own issue
> because it is helpful for other distributed tests as well. I also need to
> decouple it from the MiniSolrCloudCluster abstraction.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]