why job submit timeout is 21474835 second

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

why job submit timeout is 21474835 second

Jinkui Shi


AkkaUtils.scala
val INF_TIMEOUT = 21474835 seconds


That is job submit timeout 248.55 days.


Why is this number?



Reply | Threaded
Open this post in threaded view
|

Re: why job submit timeout is 21474835 second

Greg Hogan
Could be rewritten as "val INFO_TIMEOUT = Integer.MAX_VALUE seconds"?

On Mon, Aug 29, 2016 at 4:22 AM, 时金魁 <[hidden email]> wrote:

>
>
> AkkaUtils.scala
> val INF_TIMEOUT = 21474835 seconds
>
>
> That is job submit timeout 248.55 days.
>
>
> Why is this number?
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: why job submit timeout is 21474835 second

Till Rohrmann
If I'm not mistaken then this was a limitation of Akka's ask futures. The
maximum timeout was as specified. It might have changed with a new version,
though. Usually, you should rarely run into a case where this actually
matters.

Cheers,
Till

On Mon, Aug 29, 2016 at 5:44 PM, Greg Hogan <[hidden email]> wrote:

> Could be rewritten as "val INFO_TIMEOUT = Integer.MAX_VALUE seconds"?
>
> On Mon, Aug 29, 2016 at 4:22 AM, 时金魁 <[hidden email]> wrote:
>
> >
> >
> > AkkaUtils.scala
> > val INF_TIMEOUT = 21474835 seconds
> >
> >
> > That is job submit timeout 248.55 days.
> >
> >
> > Why is this number?
> >
> >
> >
> >
>
mxm
Reply | Threaded
Open this post in threaded view
|

Re: why job submit timeout is 21474835 second

mxm
This limitation doesn't exist anymore in the latest master. Jobs may
be monitored for infinite amount of time now. Note that it wouldn't
cancel the job if the submission timeout had been reached before the
job completed.

On Mon, Aug 29, 2016 at 6:06 PM, Till Rohrmann <[hidden email]> wrote:

> If I'm not mistaken then this was a limitation of Akka's ask futures. The
> maximum timeout was as specified. It might have changed with a new version,
> though. Usually, you should rarely run into a case where this actually
> matters.
>
> Cheers,
> Till
>
> On Mon, Aug 29, 2016 at 5:44 PM, Greg Hogan <[hidden email]> wrote:
>
>> Could be rewritten as "val INFO_TIMEOUT = Integer.MAX_VALUE seconds"?
>>
>> On Mon, Aug 29, 2016 at 4:22 AM, 时金魁 <[hidden email]> wrote:
>>
>> >
>> >
>> > AkkaUtils.scala
>> > val INF_TIMEOUT = 21474835 seconds
>> >
>> >
>> > That is job submit timeout 248.55 days.
>> >
>> >
>> > Why is this number?
>> >
>> >
>> >
>> >
>>