Issue with json.decode in jython 2.7.1

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

Issue with json.decode in jython 2.7.1

Kevin Hill
Hi, I was wondering if it would be possible to upgrade the jython bundled
with nifi 1.9.0, which currently stands at 2.7.1. It appears there is a
very obscure bug related to multi-threading and json.decode that was fixed
between 2.7.1 and 2.7.2

I am trying to set up and ExecuteScript processor that needs to parse some
json log lines on some very large files, and I would very much like to use
more than one thread.

You can read more about the bug here:
https://bugs.jython.org/issue2609

-Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Issue with json.decode in jython 2.7.1

Otto Fowler
Can you create a jira?


On March 13, 2019 at 09:47:26, Kevin Hill ([hidden email]) wrote:

Hi, I was wondering if it would be possible to upgrade the jython bundled
with nifi 1.9.0, which currently stands at 2.7.1. It appears there is a
very obscure bug related to multi-threading and json.decode that was fixed
between 2.7.1 and 2.7.2

I am trying to set up and ExecuteScript processor that needs to parse some
json log lines on some very large files, and I would very much like to use
more than one thread.

You can read more about the bug here:
https://bugs.jython.org/issue2609

-Kevin
Reply | Threaded
Open this post in threaded view
|

Re: Issue with json.decode in jython 2.7.1

Matt Burgess-2
In reply to this post by Kevin Hill
Kevin,

I feel your pain, that's a particularly nasty bug, and in fact there
were a few bugs to be included in the 2.7.2 release. However, AFAIK
Jython 2.7.2 was never released. The latest in Maven is 2.7.1 [1], and
even in Github there's only a 2.7.2 alpha tag [2].  Do you know of a
place to get a 2.7.2 release?

Regards,
Matt

[1] https://mvnrepository.com/artifact/org.python/jython-standalone
[2] https://github.com/jythontools/jython/tree/v2.7.2a1

On Wed, Mar 13, 2019 at 9:47 AM Kevin Hill <[hidden email]> wrote:

>
> Hi, I was wondering if it would be possible to upgrade the jython bundled
> with nifi 1.9.0, which currently stands at 2.7.1. It appears there is a
> very obscure bug related to multi-threading and json.decode that was fixed
> between 2.7.1 and 2.7.2
>
> I am trying to set up and ExecuteScript processor that needs to parse some
> json log lines on some very large files, and I would very much like to use
> more than one thread.
>
> You can read more about the bug here:
> https://bugs.jython.org/issue2609
>
> -Kevin