Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Update Finagle to 6.36#2233

Merged
knewmanTE merged 1 commit intoTechEmpower:masterfrom
vkostyukov:vk/update-finagle
Aug 25, 2016
Merged

Update Finagle to 6.36#2233
knewmanTE merged 1 commit intoTechEmpower:masterfrom
vkostyukov:vk/update-finagle

Conversation

@vkostyukov
Copy link
Copy Markdown
Contributor

This PR updates Finagle to 6.36 and also makes some misc changes:

  1. Make DateTimeFormat a thread-local since it's not thread-safe and it's not fair to share it
  2. Use one-jar plugin to run the program instead of reusing the sbt's JVM instance

Please let me know if there anything I can do/change to make this PR make it to the Round 13.

val dateFormat: DateFormat = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z")

val dateFormat: ThreadLocal[DateFormat] = new ThreadLocal[DateFormat] {
override def initialValue: DateFormat = new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The format here should be "E, dd MMM yyyy HH:mm:ss 'GMT'". See the issue we hit and the pull-request here: twitter/finatra#312

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks @cacoco! I updated the PR to use request API req.date = ??? instead that uses the right date format.

@knewmanTE
Copy link
Copy Markdown
Contributor

@vkostyukov looks good! we'll do our best to get this into round 13!

@vkostyukov
Copy link
Copy Markdown
Contributor Author

Thank you, @knewmanTE!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants