Commit Graph

517 Commits

Author SHA1 Message Date
Beluga Behr
cc13de4f87 THRIFT-4851: Remove All Calls To printStackTrace
Client: Java
Patch: Beluga Behr <dam6923@gmail.com>

This closes #1783
2019-05-03 22:58:53 +02:00
James E. King III
393f6c93e1 THRIFT-3877: fix py/py3 server, java client with http transport
The java TestClient asks the server to runa  oneway request that
sleeps for 3 seconds.  If the java TestClient sees the duration
of the call exceed one second, it fails the test.  This means the
server did not participate in the "fire and forget" dynamics of
ONEWAY requests.  In this case the THttpServer was processing the
RPC before sending the transport response.  The fix was to enhance
the TProcessor so that the THttpServer has an opportunity to inspect
the message header before processing the RPC.

This is partly due to the violation of the THttpServer in the
layered architecture.  It is essentially implementing a combined
server and transport, whereas there should be a distinct server,
protocol, and transport separation.  Many languages seem to have
this problem where HTTP was introduced.
2019-02-11 17:46:30 -05:00
James E. King III
74a3e0923d THRIFT-4779: fix exception type in TMultiplexedProcessor 2019-02-08 00:34:01 -05:00
Qinghui Xu
4a898564f9 THRIFT-4773: Provide root cause for sasl negotiation failure
Client: java
The error for sasl negotiation failure dropped the root cause, which makes troubleshooting sometimes difficult.
2019-02-06 16:07:19 -05:00
Fokko Driesprong
1686c87024 THRIFT-4766: Fix JDK11 build (#1723)
* [THRIFT-4766] Enable JDK9 build
* THRIFT-4766: build on bionic using native jdk (java-11-openjdk)
Change from headless to the normal JDK. Maybe the libasound is pulled
in transitively.
2019-02-01 14:31:58 -05:00
James E. King III
8935c98046 THRIFT-4753: re-version master to next release 0.13.0 2019-01-25 23:33:54 -05:00
James E. King III
98f379ece1 THRIFT-4746: changes for publishing java library to maven; fix java debug vs. release build with cmake 2019-01-23 09:24:32 -05:00
Beluga Behr
e20ab3e237 THRIFT-4725: Change Return Type Signature of Process Methods 2019-01-14 11:22:02 -05:00
Beluga Behr
93e8ec2d6a THRIFT-4726: Remove SLF4J Logging Guards 2019-01-06 21:33:37 -05:00
Beluga Behr
d532441366 THRIFT-4368: Fix guaranteed NPE in TBaseAsyncProcessor.java
wq# Please enter the commit message for your changes. Lines starting
2019-01-04 14:27:10 -05:00
James E. King III
6503043bc4 THRIFT-4714: optimize java TFramedTransport to call write once per flush 2019-01-03 22:04:36 -05:00
Beluga Behr
88584f8469 THRIFT-4712: Improve Performance and Refactor ShortStack 2019-01-03 18:55:36 -05:00
Beluga Behr
882d48da5d THRIFT-4481: TBinaryProtocol.writeMessageEnd does not allow throwable exception 2019-01-03 14:45:16 -05:00
Beluga Behr
36ffe1e8dc THRIFT-4469: Make isServing volatile 2019-01-03 07:23:45 -05:00
Beluga Behr
5abf58cf79 THRIFT-4709: Use StandardCharsets UTF-8 2019-01-03 00:10:15 -05:00
Beluga Behr
9e813aeed2 THRIFT-4702: Improve AutoExpandingBuffer 2019-01-03 00:06:19 -05:00
Beluga Behr
99f673a767 THRIFT-4694: Upgrade Java to Java 1.8 2019-01-02 19:20:56 -05:00
Beluga Behr
1c6914d5c5 THRIFT-4713: Review of TBaseHelper 2019-01-02 10:42:23 -05:00
Beluga Behr
df9c60d38f THRIFT-4711: Improve Immutable None Type Instantiation 2019-01-02 10:05:48 -05:00
Beluga Behr
138a81d5b4 THRIFT-4704: Streamline TDeserializer Implementation 2018-12-31 17:27:43 -05:00
James E. King III
e2109b914c
Merge pull request #1653 from jeking3/consume-0.12.0
THRIFT-4689: Consume the 0.12.0 release branch changes into master
2018-12-30 22:41:49 -05:00
Beluga Behr
bf51a9faf9 THRIFT-4695: Pre-Size Java Collections in Union 2018-12-30 22:39:32 -05:00
Beluga Behr
3671b8bce9 Use case-switch Statement Instead of if-else Clauses 2018-12-30 22:37:32 -05:00
James E. King III
c3375d9e43 Merge remote-tracking branch 'origin/0.12.0' into consume-0.12.0 2018-12-30 11:06:00 -05:00
Robert Lu
a139082755 THRIFT-4546: replace all git-wip-us.apache.org to github.com 2018-12-28 07:46:47 -05:00
jfarrell
384647d290 Version 0.12.0 2018-12-18 20:24:34 -05:00
Naveen Gangam
d566da7739 THRIFT-4494: Increase Java Socket Buffer Size (#1608) 2018-10-05 17:05:40 -04:00
Naveen Gangam
eb31a6cd7e THRIFT-4499: Remove Magic Number In TFIleTransport (#1607) 2018-10-05 17:05:07 -04:00
nicaro
7db90771ac THRIFT-4566: Pass message to rethrow exception (#1554)
Client: java
2018-05-09 08:48:56 -04:00
nicaro
c7aa68bd59 Thrift 4556: Optional rethrow of unhandled exceptions in java processor (#1544)
Client: java
2018-05-01 09:07:50 -04:00
Vihang Karajgaonkar
33fb1a3f0d THRIFT-3769 : Fix logic of THRIFT-2268
Client: java
2018-05-01 08:16:42 -04:00
Ben Podgursky
50bfc56d5d THRIFT-4555 Optionally disable copies of binary fields in constructors, getters and setters.
Client: java

This closes #1540.
2018-04-17 07:21:46 +01:00
Manu Sridharan
930428438c
THRIFT-4530: add @Nullable annotations to generated Java code
Use our own `org.apache.thrift.annotations.Nullable` type to avoid
introducing a third-party dependency

Client: java

This closes #1522.
2018-03-29 14:53:36 +02:00
Ozan Can Altiok
e46419b5ec THRIFT-4476: Typecasting problem on double list items,
emitting doubles with high precision
Client: cpp
Client: erl
Client: java
Client: js
Client: py

This closes #1511
2018-03-20 16:28:15 -04:00
Dmitry Volodin
da9a9bac92 THRIFT-4429: Make TThreadPoolServer.executorService_ available in
inherited classes and refactor methods to be able customization
Client: java

This closes #1485
2018-03-13 13:49:55 -04:00
James E. King III
2bf03270bb THRIFT-4337: fix javadoc build error related to changes 2018-03-12 18:37:14 -04:00
Dmitry Volodin
8678dfc78b THRIFT-4337: Able to set keyStore and trustStore as InputStream in the
TSSLTransportFactory.TSSLTransportParameters
Client: java

This closes #1486
2018-03-12 08:03:54 -04:00
James E. King III
d973409661 THRIFT-4506: fix use of assert for correctness in Java SASL negotiation
Client: java
2018-03-05 12:00:22 -05:00
Alex Volanis
7004a61e44 THRIFT-(1418|1507|3983|4120|4178|4259|4294): Multiple issues
Client: java

THRIFT-4294: Java Configure Fails for Ant >= 1.10
THRIFT-4259: Thrift does not compile due to Ant Maven task errors
THRIFT-4178: Java libraries missing from package when using cmake
THRIFT-3983: libthrift is deployed on central with pom packaging
             instead of jar
THRIFT-1507: Maven can't download resource from central when behind
             a proxy and won't use local repository
THRIFT-1418: Compiling Thrift from source: Class
             org.apache.tools.ant.taskdefs.ConditionTask doesn't
             support the nested "typefound" element

Refactor CMake install hook to allow using "sudo make install/fast"
which avoids the THRIFT-1507 and THRIFT-1418 issues.

New Gradle based build system for Thrift Java Library

* Add Gradle 4.4.1 Wrapper artifacts to enable builds
Using the Gradle Wrapper helps normalize the builds on all platforms
so we use a consistent build tool independent of package managers.

The Gradle build logic was partitioned into multiple specific
scripts to simplify understanding and maintenance of the build.

This is now hooked into CMake and Autoconf processing steps
and can build/test/publish to Maven. The README.md was updated
to illustrate the new build options and add some documentation
on the requirements for Maven publication.

Cleaned up the CMake files to reduce reliance on file globbing
which is known to cause confusion when multiple users contribute.

* Fix two minor issues in Javadoc and unit test

Return values were undeclared in Javadoc
Test was asserting on the wrong test object instance

* Create simple runner scripts for cross-check

Using Gradle as a java execution wrapper is too heavy.
I simplified the test client/server execution by using a
three generated scripts in the build directory direcly
callable by the cross-check test harness.

* Cleanup the remaining Ant build scripts

Pulled the Maven Ant task properties out of the Java build
since they are no longer used there.
Deleted the no longer used build.xml and build.properties
files from the Java build.
Made each Ant build own the Maven Ant task details in their
build.properties file.

* Fix the build issue with Java SSL in the ubuntu-trusty container

The latest Trusty JDK7 builds seem to have encountered this issue
because the OpenJDK removed the SunEC algorithms.

* Update the developer info as requested in review

Use the generic Apache Thrift developer list for contact information

* Add Clover Code coverage for easy access by developers

Clover plugin for Gradle was applied and configured which enables
code coverage reports to be available on demand via a command line
option. The documentation in the README.md was enhanced to give
the details of this change and how to take advantage of it.
2018-01-24 12:28:55 -05:00
Stephane Landelle
dda41f37cf Fix generated maven packaging
Client: java

This closes #1430
This closes #1456
This closes #1442
2018-01-04 09:28:19 -05:00
Nobuaki Sukegawa
026c9d032c THRIFT-3686 Java processor should report internal error on uncaught exception
Client: java

This closes #904
This closes #1428
2017-11-30 12:43:26 -05:00
James E. King, III
58402ff6a7 THRIFT-2013: add multiplex server and client test support to cpp language
add multiplex client test support to csharp and java languages
fix a bug in the server-side header protocol factory
fix a bug in the cpp SSL server socket implementation
remove unnecessary sleep in cpp server testOneway

This closes #1414
2017-11-18 21:10:40 -05:00
itegel
847ecf3c1d THRIFT-4378: add set method for stopTimeoutUnit in TThreadPoolServer java lib
modify timeout unit in createDefaultExecutorService from hard coding to read from args
Client: java

This closes #1409
2017-11-02 05:53:09 -07:00
James E. King, III
533405e3f8 THRIFT-4376: fix more high impact coverity defects
Led to the discovery of incorrect lua socket error handling.

This closes #1405
2017-10-29 07:05:47 -04:00
christianc
a39ba7f294 THRIFT-4362 check "read length" in readStringBody(int)
Client: Java

This closes #1398
2017-10-25 08:40:51 -04:00
James E. King, III
9ce1fd9aee THRIFT-4049, THRIFT-4053: when skipping, if field type is invalid, throw a
protocol exception of invalid data instead of doing nothing which could
cause a loop
Client: C++, java

This closes #1371
2017-09-24 05:59:35 -07:00
Dmitry Volodin
28eb9d98ef THRIFT-4233: Make THsHaServer.invoker available (get method only) in inherited classes
Client: hs

This closes #1366
2017-09-21 14:55:50 -07:00
Deniss Afonin
d3cda9c2f3 THRIFT-3357: Generate EnumSet/EnumMap where elements/keys are enums
Client: Java

This closes #1253
2017-09-21 13:57:09 -07:00
Johnny-Liao
9ffb41d94c THRIFT-4251: Fix JDK Epoll Bug in Thrift of TThreadedSelectorServer model.
Client: Java

This closes #1313
2017-09-21 12:48:48 -07:00
Thomas Petazzoni
1744cdcb67 configure.ac, Makefile.am: introduce THRIFT variable to support cross-compilation
The thrift build system currently assumes that the thrift compiler is
always available in $(top_builddir)/compiler/cpp/thrift. However, in a
cross-compilation context, this location contains the thrift compiler
built for the target... which obviously will not run on the build
machine.

In order to support such cross-compilation situation, we introduce the
THRIFT variable as a an argument for the configure script (using
AC_ARG_VAR). If not specified, it defaults to the existing value of
using compiler/cpp/thrift from the build directory, but it can be
overridden when calling ./configure.

Note that $(top_builddir) cannot be used within the configure script,
so we simply use `pwd`, which is the same as the top_builddir.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

This closes #1336
This closes #1350
2017-09-09 07:50:54 -07:00