Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use threadsafe formatter #64

Merged
merged 2 commits into from
Oct 14, 2016
Merged

Conversation

maskit
Copy link
Member

@maskit maskit commented Oct 14, 2016

Motivation

Ensure thread safety.

This will fix #62. findbugs suggests the same thing too.
I'm not sure whether it is causing bad things but it can be a problem.

Modifications

Replace the date formatters with DateTimeFormatter class.

Result

Be thread safe.

@yahoocla
Copy link

CLA is valid!

Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Oct 14, 2016
@merlimat merlimat added this to the 1.15 milestone Oct 14, 2016
Copy link
Contributor

@sboobna sboobna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@sboobna sboobna merged commit 050ecd1 into apache:master Oct 14, 2016
sijie pushed a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
@maskit maskit deleted the use_threadsafe_formatter branch October 23, 2018 14:19
massakam pushed a commit to massakam/pulsar that referenced this pull request Aug 6, 2020
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
- add assert check

Fixes apache#64

Change-Id: Ibd355440ccf3b06ac60575a9306cfb66cb80d759
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
---

Fixes apache#64

*Motivation*

Currently, kop protocol handler only prints header at debug
statements. We also need request and response.

*Modifications*

- Add more request and response info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SimpleDateFormat is not thread safe
4 participants