Hi,
We are interested in contributing a stop ASYNC collections API (cloud
backup etc) call as a feature.
Does the community think it's a good idea to look into this? Would the
first step be creating a jira for this? Any guidance on this would be
appreciated.

Thanks,
Yuntong

On Tue, Jul 30, 2024 at 5:41 PM Yuntong Qu <yuntong...@gmail.com> wrote:

> Thank you Christine for looking into this.
>
> I am also not aware of any ways to cancel backups or async collections api
> calls. Agree that to implement this, it would make sense for something like
> CANCELASYNC to cancel ongoing async calls. I think adding cancelling async
> calls is a good idea to consider.
>
> As for visibility, you can check async call status by REQUESTSTATUS or
> check in ZK/overseer/collection-queue-work.
>
> I don't believe that backups/ async calls are exposed through metrics.
>
> Thanks,
> Yuntong
>
> On Tue, Jul 30, 2024 at 9:03 AM Christine Poerschke (BLOOMBERG/ LONDON) <
> cpoersc...@bloomberg.net> wrote:
>
>> Hi Yuntong,
>>
>> Thank you for asking this question!
>>
>> I was curious to learn more about this area of the code base and so had a
>> little look around.
>>
>> It seems there is no documented way yet to cancel a backup but
>> conceptually perhaps the async request id could be used for cancel logic,
>> if a CANCELBACKUP command updated the status and if the backup code
>> periodically checked the status, or watched out for status changes.
>>
>> Somewhat related, I wonder what the current visibility into backup
>> progress is i.e. "in-progress then complete" only or more granular, either
>> via request status or via metrics or logging or so.
>>
>> Hope that helps.
>>
>> -Christine
>>
>>
>> https://solr.apache.org/guide/solr/latest/deployment-guide/collection-management.html#backup
>>
>>
>> https://solr.apache.org/guide/solr/latest/configuration-guide/collections-api.html#asynchronous-calls
>>
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/handler/admin/CollectionsHandler.java#L1064-L1070
>>
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/handler/admin/api/CreateCollectionBackup.java
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/cloud/api/collections/BackupCmd.java
>>
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/handler/admin/BackupCoreOp.java
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/handler/admin/api/CreateCoreBackup.java
>>
>>
>> https://github.com/apache/solr/blob/releases/solr/9.6.1/solr/core/src/java/org/apache/solr/handler/SnapShooter.java
>>
>>
>> From: users@solr.apache.org At: 07/26/24 21:35:21 UTC+1:00To:
>> users@solr.apache.org
>> Subject: Re: Cancel ongoing solr backups
>>
>> Bumping this. Would love to know if there is a way to cancel a Solr cloud
>> backup.
>>
>> > On Jul 16, 2024, at 17:12, Yuntong Qu <yuntong...@gmail.com> wrote:
>> >
>> > 
>> > Hi,
>> >
>> > We have large solr clouds that sometimes take hours to backup. Since
>> during a
>> Solr cloud backup, Collections API requests are queued by overseer, thus
>> we
>> can't make other Collections API calls during ongoing backup.
>> >
>> > Is there any way to cancel an ongoing backup?
>> >
>> > Thanks,
>> > Yuntong
>>
>>
>>

Reply via email to