forked from vesoft-inc/nebula-storage
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rebuild fulltext indexes via listener (vesoft-inc#482)
* go go go * wtf * fixed dump bug * rebuild fulltext index via listener * fix getListenerHost; log info; reset * rebase master; rebuild done logic * fixed bug for cannot trigger snapshot * fixed bug for cleanup() override * fixed pursueLeaderDone * remove invalid code * vlog * fixed compiler warning Co-authored-by: Doodle <[email protected]>
- Loading branch information
1 parent
da5dde0
commit 3e80ad7
Showing
16 changed files
with
287 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* Copyright (c) 2021 vesoft inc. All rights reserved. | ||
* | ||
* This source code is licensed under Apache 2.0 License, | ||
* attached with Common Clause Condition 1.0, found in the LICENSES directory. | ||
*/ | ||
|
||
#include "meta/processors/jobMan/RebuildFTJobExecutor.h" | ||
|
||
namespace nebula { | ||
namespace meta { | ||
|
||
folly::Future<Status> | ||
RebuildFTJobExecutor::executeInternal(HostAddr&& address, | ||
std::vector<PartitionID>&& parts) { | ||
return adminClient_->addTask(cpp2::AdminCmd::REBUILD_FULLTEXT_INDEX, jobId_, taskId_++, | ||
space_, {std::move(address)}, taskParameters_, | ||
std::move(parts), concurrency_); | ||
} | ||
|
||
} // namespace meta | ||
} // namespace nebula |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* Copyright (c) 2021 vesoft inc. All rights reserved. | ||
* | ||
* This source code is licensed under Apache 2.0 License, | ||
* attached with Common Clause Condition 1.0, found in the LICENSES directory. | ||
*/ | ||
|
||
#ifndef META_REBUILDFTJOBEXECUTOR_H_ | ||
#define META_REBUILDFTJOBEXECUTOR_H_ | ||
|
||
#include "meta/processors/jobMan/RebuildJobExecutor.h" | ||
|
||
namespace nebula { | ||
namespace meta { | ||
|
||
class RebuildFTJobExecutor : public RebuildJobExecutor { | ||
public: | ||
RebuildFTJobExecutor(JobID jobId, | ||
kvstore::KVStore* kvstore, | ||
AdminClient* adminClient, | ||
const std::vector<std::string>& paras) | ||
: RebuildJobExecutor(jobId, kvstore, adminClient, std::move(paras)) { | ||
toHost_ = TargetHosts::LISTENER; | ||
} | ||
|
||
protected: | ||
folly::Future<Status> | ||
executeInternal(HostAddr&& address, std::vector<PartitionID>&& parts) override; | ||
}; | ||
|
||
} // namespace meta | ||
} // namespace nebula | ||
|
||
#endif // META_REBUILDFTJOBEXECUTOR_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.