Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持searcher启动时不加载target,由fed加载 #365

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ def addOptions(self):
self.parser.add_option('', '--enablePublishTableTopoInfo', action='store_true', dest='enablePublishTableTopoInfo', default=False)
self.parser.add_option('', '--force_tablet_load', action='store_true', dest='forceTabletLoad', default=False)
self.parser.add_option('', '--qrsLoadTarget', action='store_true', dest='qrsLoadTarget', default=False)
self.parser.add_option('', '--searcherLoadTarget', action='store_true', dest='searcherLoadTarget', default=False)

def parseParams(self, optionList):
self.optionList = optionList
Expand Down Expand Up @@ -247,6 +248,8 @@ def initMember(self, options):
else:
self.offlineConfigPath = os.path.join(self.offlineConfigPath, str(tableVersions[-1]))

self.qrsLoadTarget = options.qrsLoadTarget
self.searcherLoadTarget = options.searcherLoadTarget
self.httpBindPort = options.httpBindPort
self.arpcBindPort = options.arpcBindPort
self.grpcBindPort = options.grpcBindPort
Expand Down Expand Up @@ -387,7 +390,7 @@ def start_once(self):
if len(zoneNames) > 1:
return -1, ("", "local access mode only support one zone, now zone names " + str(zoneNames), -1)

if not self.enableLocalAccess:
if not self.enableLocalAccess and self.searcherLoadTarget:
ret = self.loadSearcherTarget(searcherTargetInfos, terminator.left_time())
if ret != 0:
return ret, ("", "load searcher target failed", -1)
Expand Down