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

修改作业日志的数据库连接后日志还是会写入老的数据库 #145

Closed
zs1314zt opened this issue Oct 26, 2016 · 0 comments
Closed
Labels

Comments

@zs1314zt
Copy link

elastic-job-console控制端修改作业日志的数据库连接后日志还是会写入原来的数据库;虽然zk中的配置已经更新了,但是没有清除listeners的缓存;

`

    private final ConcurrentHashMap<String, JobEventListener> listeners = new ConcurrentHashMap<>();

    void register(final Collection<JobEventConfiguration> jobEventConfigs) {
        for (JobEventConfiguration each : jobEventConfigs) {
            register(each.createJobEventListener());
        }
    }

    private void register(final JobEventListener listener) {
        if (null != listener && null == listeners.putIfAbsent(listener.getIdentity(), listener)) {
            eventBus.register(listener);
        }
    }

`

@terrymanu terrymanu added the bug label Oct 28, 2016
@haocao haocao closed this as completed in ebf81a6 Oct 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants