[ https://issues.apache.org/jira/browse/RANGER-3990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
kirby zhou resolved RANGER-3990. -------------------------------- Resolution: Duplicate > PatchForSolrSvcDefAndPoliciesUpdate_J10055 failing when > ranger.supportedcomponents excluding solr. > -------------------------------------------------------------------------------------------------- > > Key: RANGER-3990 > URL: https://issues.apache.org/jira/browse/RANGER-3990 > Project: Ranger > Issue Type: Improvement > Components: admin > Affects Versions: 3.0.0, 2.3.0 > Reporter: kirby zhou > Priority: Major > > When I set install.properties like that > > {code:java} > ranger.supportedcomponents=tag,hdfs,hive,yarn,kafka,kms,kudu {code} > Then, run db_setup.py to upgrade a old instance, error occurs: > {code:java} > 2022-11-28 16:19:49,949 [JISQL] > /sensorsdata/main/program/armada/jdk18292/jdk18292/bin/java -cp > /sensorsdata/main/program/sp/commonjars/mysql-connector-java.jar:/sensorsdata/main/program/rogue/ranger-2.3.0-admin/jisql/lib/* > org.apache.util.sql.Jisql -driver mysqlconj -cstring > jdbc:mysql://10.129.17.81:4000/kirby_ranger2?useSSL=false -u 'kirby_ranger' > -p '********' -noheader -trim -c \; -query "delete from x_db_version_h where > version = 'J10055' and active = 'N' and updated_by='ranger_admin';" > 2022-11-28 16:19:50,298 [E] applying java patch > PatchForSolrSvcDefAndPoliciesUpdate_J10055 failed > {code} > > {code:java} > 437 if (xXServiceDefObj == null) { > 438 logger.info(xXServiceDefObj + ": service-def not > found. No patching is needed"); > 439 System.out.println(0); > 440 } > 441 > 442 embeddedSolrResourceDefs = > embeddedSolrServiceDef.getResources(); // ResourcesType > 443 dbSolrServiceDef = > this.svcDBStore.getServiceDefByName(SOLR_SVC_DEF_NAME); > 444 dbSolrServiceDef.setResources(embeddedSolrResourceDefs); > {code} > It seems that, line 439 should be replaced by System.exit(0) > > > > > -- This message was sent by Atlassian Jira (v8.20.10#820010)