我面临着一个对我来说很大的问题,问题是我在 Google Play 上发布了一个应用程序,有很多用户,现在保持其状态我已经更改了状态,并且应用程序崩溃了,因为用户启用了 Android 自动备份功能并且应用程序从 Google 服务器获取状态,这与我的应用程序的新版本冲突。请告诉我如何以编程方式从我的应用程序禁用自动恢复功能。谢谢
我正在尝试备份 solr 云集合。Solr 和 Zookeeper 在 Docker 容器中运行。有3个solr(使用端口:8981,8982,8983)和3个ZKs容器正在运行。我将 docker 卷传递给 solr 容器
volumes:
- solr_backups:/solr-backups/storage
Run Code Online (Sandbox Code Playgroud)
在 Dockerfile 中,构建并给出了文件夹chmod 777
。因此,所有 solr 容器都会将该文件夹视为网络共享(我假设)。
执行中
$ curl "localhost:8981/solr/admin/collections?action=BACKUP&name=test1&collection=myColl&location=/solr-backups/storage"
Run Code Online (Sandbox Code Playgroud)
返回以下内容
...
"failure":{
"172.19.0.22:8983_solr":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:
Error from server at http://172.19.0.22:8983/solr:
Failed to backup core=myColl_shard1_replica_n1 because org.apache.solr.common.SolrException:
Path /solr-backups/storage/test1 must be relative to SOLR_HOME, SOLR_DATA_HOME coreRootDirectory.
Set system property 'solr.allowPaths' to add other allowed paths."},
"Operation backup caused exception:":"org.apache.solr.common.SolrException:org.apache.solr.common.SolrException:
Could not backup all shards",
"exception":{
"msg":"Could not backup all shards",
"rspCode":500},
"error":{
"metadata":[
"error-class","org.apache.solr.common.SolrException",
"root-error-class","org.apache.solr.common.SolrException"], …
Run Code Online (Sandbox Code Playgroud)