You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "sunyerui (JIRA)" <ji...@apache.org> on 2015/08/04 09:57:05 UTC

[jira] [Updated] (KYLIN-923) FetcherRunner will never run again if encountered exception during running

     [ https://issues.apache.org/jira/browse/KYLIN-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

sunyerui updated KYLIN-923:
---------------------------
    Attachment: KYLIN-923.patch

Patch uploaded.
Catch all Exception in FetchRunner.run() to avoid stopping running.
Related tests also patched.

> FetcherRunner will never run again if encountered exception during running
> --------------------------------------------------------------------------
>
>                 Key: KYLIN-923
>                 URL: https://issues.apache.org/jira/browse/KYLIN-923
>             Project: Kylin
>          Issue Type: Bug
>          Components: Job Engine
>    Affects Versions: v0.7.2
>            Reporter: sunyerui
>            Assignee: ZhouQianhao
>         Attachments: KYLIN-923.patch
>
>
> {{FetcherRunner}} was scheduled at fix rate in {{fetcherPool}} which is a {{ScheduledExecutorService}}. In every running, {{FetcherRunner}} fetch all jobs from {{executableManager}}, and submit READY jobs to execute. 
> If  exceptions encountered during running, such as {{executableManager.getAllJobIds()}} or {{executableManager.getAllJobIds()}}, the {{FetcherRunner}} will never run again in {{fetcherPool}},  that was explained in comment of {{ScheduledExecutorService.scheduleAtFixedRate}}.
> The solution to resolve this issue is simple, that catch all {{Exception}} during {{FetcherRunner.run()}}. I will upload a patch later.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Re: [jira] [Updated] (KYLIN-923) FetcherRunner will never run again if encountered exception during running

Posted by hongbin ma <ma...@apache.org>.
please refer to
http://kylin.incubator.apache.org/docs/howto/howto_contribute.html for
branch information. If you're committing patch on 0.7 version, make sure
you're making a patch against 0.7-staging

On Tue, Aug 4, 2015 at 5:38 PM, 周千昊 <z....@gmail.com> wrote:

> Hi, Sun
>       thank you for your patch, however I am not able to apply this patch
> with your commit info(git am failed), will you please check again for this
> patch?
>       Also there are 2 major branched (0.7-staging and 0.8), and there are
> lots of changes between them and they will not be merged together, so would
> you please create two patches for each one of them?
>
> sunyerui (JIRA) <ji...@apache.org>于2015年8月4日周二 下午3:57写道:
>
> >
> >      [
> >
> https://issues.apache.org/jira/browse/KYLIN-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> > ]
> >
> > sunyerui updated KYLIN-923:
> > ---------------------------
> >     Attachment: KYLIN-923.patch
> >
> > Patch uploaded.
> > Catch all Exception in FetchRunner.run() to avoid stopping running.
> > Related tests also patched.
> >
> > > FetcherRunner will never run again if encountered exception during
> > running
> > >
> >
> --------------------------------------------------------------------------
> > >
> > >                 Key: KYLIN-923
> > >                 URL: https://issues.apache.org/jira/browse/KYLIN-923
> > >             Project: Kylin
> > >          Issue Type: Bug
> > >          Components: Job Engine
> > >    Affects Versions: v0.7.2
> > >            Reporter: sunyerui
> > >            Assignee: ZhouQianhao
> > >         Attachments: KYLIN-923.patch
> > >
> > >
> > > {{FetcherRunner}} was scheduled at fix rate in {{fetcherPool}} which is
> > a {{ScheduledExecutorService}}. In every running, {{FetcherRunner}} fetch
> > all jobs from {{executableManager}}, and submit READY jobs to execute.
> > > If  exceptions encountered during running, such as
> > {{executableManager.getAllJobIds()}} or
> > {{executableManager.getAllJobIds()}}, the {{FetcherRunner}} will never
> run
> > again in {{fetcherPool}},  that was explained in comment of
> > {{ScheduledExecutorService.scheduleAtFixedRate}}.
> > > The solution to resolve this issue is simple, that catch all
> > {{Exception}} during {{FetcherRunner.run()}}. I will upload a patch
> later.
> >
> >
> >
> > --
> > This message was sent by Atlassian JIRA
> > (v6.3.4#6332)
> >
> --
> Best Regard
> ZhouQianhao
>



-- 
Regards,

*Bin Mahone | 马洪宾*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone

Re: [jira] [Updated] (KYLIN-923) FetcherRunner will never run again if encountered exception during running

Posted by Yerui Sun <su...@gmail.com>.
Hi,
Sorry for the un-formatted patch, I have uploaded new patches for branch-0.7-staging and branch-0.8.

I’m not so familar about git patching, so let me know if there’s any mistake, I will correct it ASAP. 

Best Regards,
Yerui Sun
sunyerui@gmail.com



> 在 2015年8月4日,17:38,周千昊 <z....@gmail.com> 写道:
> 
> Hi, Sun
>  thank you for your patch, however I am not able to apply this patch
> with your commit info(git am failed), will you please check again for this
> patch?
>  Also there are 2 major branched (0.7-staging and 0.8), and there are
> lots of changes between them and they will not be merged together, so would
> you please create two patches for each one of them?
> 
> sunyerui (JIRA) <ji...@apache.org>于2015年8月4日周二 下午3:57写道:
> 
>> 
>> [
>> https://issues.apache.org/jira/browse/KYLIN-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
>> ]
>> 
>> sunyerui updated KYLIN-923:
>> ---------------------------
>> Attachment: KYLIN-923.patch
>> 
>> Patch uploaded.
>> Catch all Exception in FetchRunner.run() to avoid stopping running.
>> Related tests also patched.
>> 
>>> FetcherRunner will never run again if encountered exception during
>> running
>>> 
>> --------------------------------------------------------------------------
>>> 
>>>            Key: KYLIN-923
>>>            URL: https://issues.apache.org/jira/browse/KYLIN-923
>>>        Project: Kylin
>>>     Issue Type: Bug
>>>     Components: Job Engine
>>> Affects Versions: v0.7.2
>>>       Reporter: sunyerui
>>>       Assignee: ZhouQianhao
>>>    Attachments: KYLIN-923.patch
>>> 
>>> 
>>> {{FetcherRunner}} was scheduled at fix rate in {{fetcherPool}} which is
>> a {{ScheduledExecutorService}}. In every running, {{FetcherRunner}} fetch
>> all jobs from {{executableManager}}, and submit READY jobs to execute.
>>> If  exceptions encountered during running, such as
>> {{executableManager.getAllJobIds()}} or
>> {{executableManager.getAllJobIds()}}, the {{FetcherRunner}} will never run
>> again in {{fetcherPool}},  that was explained in comment of
>> {{ScheduledExecutorService.scheduleAtFixedRate}}.
>>> The solution to resolve this issue is simple, that catch all
>> {{Exception}} during {{FetcherRunner.run()}}. I will upload a patch later.
>> 
>> 
>> 
>> --
>> This message was sent by Atlassian JIRA
>> (v6.3.4#6332)
>> 
> -- 
> Best Regard
> ZhouQianhao


Re: [jira] [Updated] (KYLIN-923) FetcherRunner will never run again if encountered exception during running

Posted by 周千昊 <z....@gmail.com>.
Hi, Sun
      thank you for your patch, however I am not able to apply this patch
with your commit info(git am failed), will you please check again for this
patch?
      Also there are 2 major branched (0.7-staging and 0.8), and there are
lots of changes between them and they will not be merged together, so would
you please create two patches for each one of them?

sunyerui (JIRA) <ji...@apache.org>于2015年8月4日周二 下午3:57写道:

>
>      [
> https://issues.apache.org/jira/browse/KYLIN-923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
> ]
>
> sunyerui updated KYLIN-923:
> ---------------------------
>     Attachment: KYLIN-923.patch
>
> Patch uploaded.
> Catch all Exception in FetchRunner.run() to avoid stopping running.
> Related tests also patched.
>
> > FetcherRunner will never run again if encountered exception during
> running
> >
> --------------------------------------------------------------------------
> >
> >                 Key: KYLIN-923
> >                 URL: https://issues.apache.org/jira/browse/KYLIN-923
> >             Project: Kylin
> >          Issue Type: Bug
> >          Components: Job Engine
> >    Affects Versions: v0.7.2
> >            Reporter: sunyerui
> >            Assignee: ZhouQianhao
> >         Attachments: KYLIN-923.patch
> >
> >
> > {{FetcherRunner}} was scheduled at fix rate in {{fetcherPool}} which is
> a {{ScheduledExecutorService}}. In every running, {{FetcherRunner}} fetch
> all jobs from {{executableManager}}, and submit READY jobs to execute.
> > If  exceptions encountered during running, such as
> {{executableManager.getAllJobIds()}} or
> {{executableManager.getAllJobIds()}}, the {{FetcherRunner}} will never run
> again in {{fetcherPool}},  that was explained in comment of
> {{ScheduledExecutorService.scheduleAtFixedRate}}.
> > The solution to resolve this issue is simple, that catch all
> {{Exception}} during {{FetcherRunner.run()}}. I will upload a patch later.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.3.4#6332)
>
-- 
Best Regard
ZhouQianhao