You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (Jira)" <ji...@apache.org> on 2019/11/28 18:16:00 UTC

[jira] [Commented] (CODEC-271) Base32 encoder may return empty string at high TPS

    [ https://issues.apache.org/jira/browse/CODEC-271?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16984584#comment-16984584 ] 

Sebb commented on CODEC-271:
----------------------------

According to the issue, the problem is with version 1.9. However the current version of the code is 1.13:

http://commons.apache.org/proper/commons-codec/download_codec.cgi

Can you please try the same test with the current version?

> Base32 encoder may return empty string at high TPS
> --------------------------------------------------
>
>                 Key: CODEC-271
>                 URL: https://issues.apache.org/jira/browse/CODEC-271
>             Project: Commons Codec
>          Issue Type: Bug
>    Affects Versions: 1.9
>            Reporter: CHINMAY DANI
>            Priority: Major
>
> I am using a static instance of *org.apache.commons.codec.binary.Base32* class in my application. For each request, there is a call made to the *encodeAsString* method. I ran a load test that called this method at >100 requests per second, and noticed that at random times, the output of the method was an empty string. The test simply encoded the same input string into a Base32 encoded string.
> I never found the reason why this happened, but I tried a few things to try to resolve the issue. The only thing that worked for me was to instantiate a new object of the *Base32* class before each call made to the *encodeAsString* method.
>  
> Do you have any thoughts/ideas why this could happen? Or whether anyone has noticed the same behavior?
>  
> Thanks



--
This message was sent by Atlassian Jira
(v8.3.4#803005)