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

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

CHINMAY DANI created CODEC-271:
----------------------------------

             Summary: 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


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)