You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Kevin Hill <ke...@hyas.com> on 2019/03/13 13:13:00 UTC

Issue with json.decode in jython 2.7.1

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

Re: Issue with json.decode in jython 2.7.1

Posted by Otto Fowler <ot...@gmail.com>.
Can you create a jira?


On March 13, 2019 at 09:47:26, Kevin Hill (kevin@hyas.com) 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

Re: Issue with json.decode in jython 2.7.1

Posted by Matt Burgess <ma...@apache.org>.
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 <ke...@hyas.com> 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