Skip to content
Open
Show file tree
Hide file tree
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 @@ -55,7 +55,6 @@ public AlertPluginManager(PluginDao pluginDao) {

public void start() {
log.info("AlertPluginManager start...");
checkAlertPluginExist();
installAlertPlugin();
log.info("AlertPluginManager started...");
}
Expand All @@ -64,13 +63,6 @@ public Optional<AlertChannel> getAlertChannel(int id) {
return Optional.ofNullable(alertPluginMap.get(id));
}

private void checkAlertPluginExist() {
if (!pluginDao.checkPluginDefineTableExist()) {
log.error("Plugin Define Table t_ds_plugin_define Not Exist. Please Create it First!");
System.exit(1);
}
}

private void installAlertPlugin() {
final PluginParams warningTypeParams = getWarningTypeParams();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,6 @@ public class PluginDao {
@Autowired
private PluginDefineMapper pluginDefineMapper;

/**
* check plugin define table exist
*
* @return boolean
*/
public boolean checkPluginDefineTableExist() {
return pluginDefineMapper.checkTableExist() > 0;
}

/**
* add or update plugin define
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,6 @@

public interface PluginDefineMapper extends BaseMapper<PluginDefine> {

/**
* check table exist
*
* @return boolean
*/
int checkTableExist();

/**
* query all plugin define
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="org.apache.dolphinscheduler.dao.mapper.PluginDefineMapper">
<select id="checkTableExist" resultType="int">
select count(*) from information_schema.TABLES where table_name = 't_ds_plugin_define'
</select>

<select id="queryAllPluginDefineList" resultType="org.apache.dolphinscheduler.dao.entity.PluginDefine">
select *
Expand Down
Loading