Skip to content

Commit 8545138

Browse files
jenkinsjenkins
authored andcommitted
Merge commit '5bd27e8ca729f08e1904e2df2294cce38400e0fb'
2 parents 8e1274c + 5bd27e8 commit 8545138

185 files changed

Lines changed: 4024 additions & 1947 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ before_cache:
2525

2626
scala:
2727
- 2.11.12
28-
- 2.12.7
28+
- 2.12.8
2929

3030
jdk:
3131
- oraclejdk8

CHANGELOG.rst

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,82 @@ Note that ``RB_ID=#`` and ``PHAB_ID=#`` correspond to associated message in comm
77
Unreleased
88
----------
99

10+
19.4.0
11+
------
12+
13+
Added
14+
~~~~~
15+
16+
* inject-server: Add `globalFlags` argument to EmbeddedTwitterServer, which will
17+
allow for scoping a `c.t.a.GlobalFlag` property change to the lifecycle of the
18+
underlying TwitterServer, as a `c.t.a.GlobalFlag` is normally scoped to the JVM/process.
19+
This change is also reflected in `EmbeddedHttpServer` and `EmbeddedThriftServer` constructors.
20+
``PHAB_ID=D288032``
21+
22+
* inject-utils: add `toOrderedMap` implicit conversion for `java.util.Map` ``PHAB_ID=D295005``
23+
24+
* finatra-kafka-streams: Add flag `rocksdb.manifest.preallocation.size` with default value
25+
`4.megabytes` to `c.t.f.k.c.RocksDbFlags` and set value in
26+
`c.t.f.k.c.FinatraRocksDBConfig`. ``PHAB_ID=D290130``
27+
28+
* finatra-http: Add `commaSeparatedList` boolean parameter to QueryParams, for
29+
parsing comma-separated query parameters into collection types. ``PHAB_ID=D268989``
30+
31+
Changed
32+
~~~~~~~
33+
34+
* finatra-kafka: Upgraded kafka libraries from 2.0.0 to 2.2.0.
35+
- `Kafka 2.0.1 Release Notes <https://archive.apache.org/dist/kafka/2.0.1/RELEASE_NOTES.html>`__
36+
- `Kafka 2.1.0 Release Notes <https://archive.apache.org/dist/kafka/2.1.0/RELEASE_NOTES.html>`__
37+
- `Kafka 2.1.1 Release Notes <https://archive.apache.org/dist/kafka/2.1.1/RELEASE_NOTES.html>`__
38+
- `Kafka 2.2.0 Release Notes <https://archive.apache.org/dist/kafka/2.2.0/RELEASE_NOTES.html>`__
39+
``PHAB_ID=D248171``
40+
41+
* finatra-thrift: Removed `c.t.finatra.thrift.exceptions.FinatraThriftExceptionMapper`,
42+
`c.t.finatra.thrift.filters.ClientIdAcceptlistFilter`,
43+
`c.t.finatra.thrift.modules.ClientIdAcceptlistModule`,
44+
`c.t.finatra.thrift.filters.ClientIdWhitelistFilter`,
45+
`c.t.finatra.thrift.modules.ClientIdWhitelistModule`,
46+
and the `finatra/finatra_thrift_exceptions.thrift` IDL. ``PHAB_ID=D278231``
47+
48+
* finatra-thrift: Constructing a `ThriftRouter` now requires `serverName`. ``PHAB_ID=D294345``
49+
50+
* finatra-examples: Updated `StreamingController` to use `Reader` instead of `AsyncStream`
51+
``PHAB_ID=D295227``
52+
53+
* finatra-kafka-streams: Implement FinatraKeyValueStore as custom store. ``PHAB_ID=D277612``
54+
55+
* finatra-thrift: Constructing a `ThriftRouter` now requires `c.t.f.StackTransformer`.
56+
``PHAB_ID=D277493``
57+
58+
Fixed
59+
~~~~~
60+
61+
* finatra-kafka: Ensure that `EmbeddedKafka` implementation of `beforeAll()` makes
62+
call to `super.beforeAll()` so hooks registered in super class get executed. ``PHAB_ID=D296643``
63+
64+
* finatra-kafka-streams: `FinatraTransformer.timerStore` config object references immutable
65+
map which causes exception thrown if user code calls `AbstractStoreBuilder.withLoggingDisabled`.
66+
Fixed `FinatraTransformer.timerStore` to convert from immutable map to mutable map before
67+
forwarding config object to kafka library. ``PHAB_ID=D293979``
68+
1069
19.3.0
1170
------
1271

1372
Added
1473
~~~~~
1574

75+
* finatra-kafka-streams: Exposing additional consumer configuration flags.
76+
- `kafka.consumer.max.poll.interval.ms` Maximum delay between invocations of poll() when using
77+
consumer group management.
78+
- `kafka.consumer.max.partition.fetch.bytes` Consumer's maximum amount of data per-partition the
79+
server will return.
80+
- `kafka.consumer.request.timeout.ms` Consumer's maximum amount of time to wait for the response
81+
of a request.
82+
- `kafka.consumer.connections.max.idle.ms` Consumer's maximum idle time for connections before
83+
closing the connection.
84+
``PHAB_ID=D287371``
85+
1686
* finatra-kafka: FinagleKafka clients pass correct deadline for close to
1787
underlying Kafka clients. ``PHAB_ID=D261115``
1888

@@ -32,6 +102,8 @@ Added
32102
Changed
33103
~~~~~~~
34104

105+
* finatra-kafka-streams: finatra-kafka-streams: Refactor queryable state management ``PHAB_ID=D277594``
106+
35107
* finatra-kafka-streams: Improve querying of windowed stores. ``PHAB_ID=D277553``
36108

37109
* inject-utils: Mark `c.t.inject.utils.StringUtils#snakify,camelify,pascalify` as
@@ -84,7 +156,6 @@ Added
84156

85157
Changed
86158
~~~~~~~
87-
88159
* finatra-kafka-streams: Refactor package names. All classes moved from
89160
com.twitter.finatra.streams to com.twitter.finatra.kafkastreams. ``PHAB_ID=D268027``
90161

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,15 +200,15 @@ Scaladocs. Please file an [issue](https://github.com/twitter/finatra/issues).
200200
[finagle-repo]: https://github.com/twitter/finagle
201201
[util-repo]: https://github.com/twitter/util
202202
[effectivescala]: https://twitter.github.io/effectivescala/
203-
[funsuite]: http://doc.scalatest.org/2.2.1/#org.scalatest.FunSuite
204-
[scalatest]: http://www.scalatest.org/
203+
[funsuite]: https://doc.scalatest.org/2.2.1/#org.scalatest.FunSuite
204+
[scalatest]: https://www.scalatest.org/
205205
[scala-style-guide]: https://docs.scala-lang.org/style/index.html
206206
[sbt]: https://www.scala-sbt.org/
207207
[travis-ci]: https://travis-ci.org/twitter/finatra
208208
[test-trait]: https://github.com/twitter/finatra/blob/develop/inject/inject-core/src/test/scala/com/twitter/inject/Test.scala
209209
[scaladoc]: https://docs.scala-lang.org/style/scaladoc.html
210210
[scalacheck]: https://www.scalacheck.org/
211-
[gendrivenprop]: http://www.scalatest.org/user_guide/generator_driven_property_checks
211+
[gendrivenprop]: https://www.scalatest.org/user_guide/generator_driven_property_checks
212212

213213
### License
214214
By contributing your code, you agree to license your contribution under the

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ The [master branch](https://github.com/twitter/finatra/tree/master) in Github tr
107107
available on Maven Central. See the [First Steps](https://twitter.github.io/finatra/user-guide/getting-started/basics.html#first-steps) section in the [User Guide][user-guide] for how to add dependencies.
108108

109109
Releases are done on an approximately monthly schedule. While
110-
[semver](http://semver.org/) is not followed, the
110+
[semver](https://semver.org/) is not followed, the
111111
[changelogs](CHANGELOG.rst) are detailed and include sections on public API
112112
breaks and changes in runtime behavior.
113113

@@ -148,4 +148,4 @@ Licensed under the Apache License, Version 2.0: https://www.apache.org/licenses/
148148
[maven]: https://maven.apache.org/
149149
[maven-central]: https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.twitter%22%20AND%20%28a%3A%22finatra-http_2.12%22%20OR%20a%3A%22finatra-thrift_2.12%22%29
150150
[user-guide]: https://twitter.github.io/finatra/user-guide/index.html
151-
[sbt]: http://www.scala-sbt.org/
151+
[sbt]: https://www.scala-sbt.org/

benchmarks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Finatra Benchmarks
22

3-
We use [JMH](http://openjdk.java.net/projects/code-tools/jmh/) as our benchmarking framework.
3+
We use [JMH](https://openjdk.java.net/projects/code-tools/jmh/) as our benchmarking framework.
44

55
## Tests
66

@@ -48,7 +48,7 @@ Or you can run the tests manually in an IDE.
4848

4949
## Running
5050

51-
[JMH](http://openjdk.java.net/projects/code-tools/jmh/) is integrated via the
51+
[JMH](https://openjdk.java.net/projects/code-tools/jmh/) is integrated via the
5252
[`sbt-jmh`](https://github.com/ktoso/sbt-jmh) plugin.
5353

5454
Benchmarks can be run using [SBT](https://www.scala-sbt.org/) via the plugin, e.g., from the

build.sbt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ import scoverage.ScoverageKeys
44
concurrentRestrictions in Global += Tags.limit(Tags.Test, 1)
55

66
// All Twitter library releases are date versioned as YY.MM.patch
7-
val releaseVersion = "19.3.0"
7+
val releaseVersion = "19.4.0"
88

99
lazy val buildSettings = Seq(
1010
version := releaseVersion,
11-
scalaVersion := "2.12.7",
12-
crossScalaVersions := Seq("2.11.12", "2.12.7"),
11+
scalaVersion := "2.12.8",
12+
crossScalaVersions := Seq("2.11.12", "2.12.8"),
1313
scalaModuleInfo := scalaModuleInfo.value.map(_.withOverrideScalaVersion(true)),
1414
fork in Test := true,
1515
javaOptions in Test ++= travisTestJavaOptions
@@ -64,7 +64,7 @@ lazy val versions = new {
6464
val jodaConvert = "1.2"
6565
val jodaTime = "2.5"
6666
val junit = "4.12"
67-
val kafka = "2.0.1"
67+
val kafka = "2.2.0"
6868
val libThrift = "0.10.0"
6969
val logback = "1.1.7"
7070
val mockito = "1.9.5"
@@ -130,7 +130,7 @@ lazy val publishSettings = Seq(
130130
else
131131
Some("releases" at nexus + "service/local/staging/deploy/maven2")
132132
},
133-
licenses := Seq("Apache 2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0")),
133+
licenses := Seq("Apache 2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")),
134134
homepage := Some(url("https://github.com/twitter/finatra")),
135135
autoAPIMappings := true,
136136
apiURL := Some(url("https://twitter.github.io/finatra/scaladocs/")),
@@ -724,9 +724,7 @@ lazy val thrift = project
724724
"com.novocode" % "junit-interface" % "0.11" % Test,
725725
"org.yaml" % "snakeyaml" % versions.snakeyaml
726726
),
727-
scroogePublishThrift in Compile := true,
728-
scroogeThriftIncludeFolders in Test := Seq(file("thrift/src/main/thrift")),
729-
scroogeLanguages in Compile := Seq("java", "scala"),
727+
scroogePublishThrift in Test := true,
730728
scroogeLanguages in Test := Seq("java", "scala"),
731729
excludeFilter in unmanagedResources := "BUILD",
732730
publishArtifact in Test := true,
@@ -753,7 +751,6 @@ lazy val injectThriftClientHttpMapper = (project in file("inject-thrift-client-h
753751
.settings(
754752
name := "inject-thrift-client-http-mapper",
755753
moduleName := "inject-thrift-client-http-mapper",
756-
scroogeThriftIncludeFolders in Test := Seq(file("thrift/src/main/thrift")),
757754
excludeFilter in Test in unmanagedResources := "BUILD"
758755
).dependsOn(
759756
http % "test->test;compile->compile",
@@ -1035,7 +1032,6 @@ lazy val thriftExampleIdl = (project in file("examples/thrift-server/thrift-exam
10351032
moduleName := "thrift-example-idl",
10361033
ScoverageKeys.coverageExcludedPackages := "<empty>;.*\\.thriftscala.*",
10371034
scroogeThriftIncludeFolders in Compile := Seq(
1038-
file("thrift/src/main/thrift"),
10391035
file("examples/thrift-server/thrift-example-idl/src/main/thrift"))
10401036
).dependsOn(thrift)
10411037

@@ -1064,7 +1060,6 @@ lazy val thriftJavaExampleIdl = (project in file("examples/java-thrift-server/th
10641060
ScoverageKeys.coverageExcludedPackages := "<empty>;.*\\.thriftjava.*",
10651061
scroogeLanguages in Compile := Seq("java"),
10661062
scroogeThriftIncludeFolders in Compile := Seq(
1067-
file("thrift/src/main/thrift"),
10681063
file("examples/java-thrift-server/thrift-example-idl/src/main/thrift"))
10691064
).dependsOn(thrift)
10701065

doc/src/sphinx/FinatraLifecycle.svg

Lines changed: 2 additions & 2 deletions
Loading

doc/src/sphinx/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555

5656
rst_epilog = '''
57-
.. _Sphinx: http://sphinx.pocoo.org/
57+
.. _Sphinx: https://www.sphinx-doc.org/en/master/
5858
'''
5959

6060
pygments_style = 'sphinx'

doc/src/sphinx/index.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ For servers, Finatra builds on top of the `features <https://twitter.github.io/t
1616
Getting Started
1717
---------------
1818

19-
To get started, add a dependency on either `finatra-http <http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.twitter%22%20AND%20a%3A%22finatra-http_2.12%22>`__ or `finatra-thrift <http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.twitter%22%20AND%20a%3A%22finatra-thrift_2.12%22>`__ depending if you are building an HTTP or Thrift server.
19+
To get started, add a dependency on either `finatra-http <https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.twitter%22%20AND%20a%3A%22finatra-http_2.12%22>`__ or `finatra-thrift <https://search.maven.org/#search%7Cga%7C1%7Cg%3A%22com.twitter%22%20AND%20a%3A%22finatra-thrift_2.12%22>`__ depending if you are building an HTTP or Thrift server.
2020

21-
E.g., with `sbt <http://www.scala-sbt.org/>`__:
21+
E.g., with `sbt <https://www.scala-sbt.org/>`__:
2222

2323
.. parsed-literal::
2424
@@ -30,7 +30,7 @@ or
3030
3131
"com.twitter" %% "finatra-thrift" % "\ |release|\ "
3232
33-
Or similarily with `Maven <http://maven.apache.org/>`__:
33+
Or similarily with `Maven <https://maven.apache.org/>`__:
3434

3535
.. parsed-literal::
3636
@@ -59,7 +59,7 @@ Test Dependencies
5959

6060
Finatra publishes `test-jars <https://maven.apache.org/guides/mini/guide-attached-tests.html>`__ for most modules. The test-jars include re-usable utilities for use in testing (e.g., the `EmbeddedTwitterServer <https://github.com/twitter/finatra/blob/develop/inject/inject-server/src/test/scala/com/twitter/inject/server/EmbeddedTwitterServer.scala>`__).
6161

62-
To add a test-jar dependency, depend on the appropriate module with the `tests` classifier. Additionally, these dependencies are typically **only needed** in the ``test`` scope for your project. E.g., with `sbt <http://www.scala-sbt.org/>`__:
62+
To add a test-jar dependency, depend on the appropriate module with the `tests` classifier. Additionally, these dependencies are typically **only needed** in the ``test`` scope for your project. E.g., with `sbt <https://www.scala-sbt.org/>`__:
6363

6464
.. parsed-literal::
6565
@@ -71,9 +71,9 @@ or
7171
7272
"com.twitter" %% "finatra-thrift" % "\ |release|\ " % "test" classifier "tests"
7373
74-
See the `sbt <http://www.scala-sbt.org/>`__ documentation for more information on using `ivy configurations and classifiers <http://www.scala-sbt.org/0.13/docs/Library-Management.html>`__.
74+
See the `sbt <https://www.scala-sbt.org/>`__ documentation for more information on using `ivy configurations and classifiers <https://www.scala-sbt.org/0.13/docs/Library-Management.html>`__.
7575

76-
And with `Maven <http://maven.apache.org/>`__:
76+
And with `Maven <https://maven.apache.org/>`__:
7777

7878
.. parsed-literal::
7979
@@ -145,9 +145,9 @@ For support feel free to follow and/or tweet at the `@finatra <https://twitter.c
145145

146146

147147
.. |Build Status| image:: https://secure.travis-ci.org/twitter/finatra.png?branch=develop
148-
:target: http://travis-ci.org/twitter/finatra?branch=develop
149-
.. |Test Coverage| image:: http://codecov.io/github/twitter/finatra/coverage.svg?branch=develop
150-
:target: http://codecov.io/github/twitter/finatra?branch=develop
148+
:target: https://travis-ci.org/twitter/finatra?branch=develop
149+
.. |Test Coverage| image:: https://codecov.io/github/twitter/finatra/coverage.svg?branch=develop
150+
:target: https://codecov.io/github/twitter/finatra?branch=develop
151151
.. |Project status| image:: https://img.shields.io/badge/status-active-brightgreen.svg
152152
:target: https://github.com/twitter/finatra#status
153153
.. |Maven Central| image:: https://maven-badges.herokuapp.com/maven-central/com.twitter/finatra-http_2.12/badge.svg

doc/src/sphinx/presentations/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ October 2015
1111
August 2015
1212
-----------
1313

14-
- `#FinagleCon 2015 <http://finagle.github.io/finaglecon/>`__ - `Streaming HTTP with Finatra and AsyncStream <http://schd.ws/hosted_files/finaglecon2015/d1/Streaming%20HTTP%20with%20Finatra%20and%20AsyncStream.pdf>`__ · `Youtube Video <https://youtu.be/7dsX0S0WsEk>`__
14+
- `#FinagleCon 2015 <https://finagle.github.io/finaglecon/>`__ - `Streaming HTTP with Finatra and AsyncStream <https://schd.ws/hosted_files/finaglecon2015/d1/Streaming%20HTTP%20with%20Finatra%20and%20AsyncStream.pdf>`__ · `Youtube Video <https://youtu.be/7dsX0S0WsEk>`__
1515

1616
April 2015
1717
----------
1818

19-
- `SF Scala <http://www.meetup.com/SF-Scala/>`__ at Twitter - `Introducing to Finatra 2.0 </finatra/Presentations/FinatraSFScala.pdf>`__ · `Youtube Video <https://youtu.be/hkVp9W4c9bs>`__
19+
- `SF Scala <https://www.meetup.com/SF-Scala/>`__ at Twitter - `Introducing to Finatra 2.0 </finatra/Presentations/FinatraSFScala.pdf>`__ · `Youtube Video <https://youtu.be/hkVp9W4c9bs>`__

0 commit comments

Comments
 (0)