Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Apr 14, 2010

  1. Yann Kerhervé

    Fixes a couple of incorrect deference (THRIFT-758)

    This is a nasty error that is triggered during exception, leaving
    the user clueless about the error since she gets a Perl error
    instead:
    
    "Can't use string ("0") as a SCALAR ref while "strict refs" in use"
    
    For instance:
    http://stackoverflow.com/questions/2488783/why-do-i-get-an-error-when-inserting-rows-with-netcassandraeasy-and-cassandra
    authored
  2. THRIFT-755. php: Fix compilation as a static module

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@934036 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored

Apr 05, 2010

  1. THRIFT-754. java: Improvements to varint reading in Compact Protocol

    This patch makes readVarint32 about 30% faster and readVarint64 about 25% faster (when using transports that support direct buffer access).
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930898 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Apr 04, 2010

  1. THRIFT-753. java: Don't look up TFieldIdEnum values with a map

    Instead of using a generated map, use a big switch statement.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930618 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Apr 03, 2010

  1. THRIFT-746. java: Generated services Iface/Client inner classes do no…

    …t derive from base classes
    
    This patch causes all generated Client classes to inherit from TServiceClient, an interface that provides a way to get the protocols the Client is using. Also, it causes a new TServiceClientFactory implementation to generated for each Service, which provides a generic, reflection-free way to get Clients. These changes make it easier to build generic pools of Client objects.
    
    Patch: Mathias Herberts
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930601 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  2. THRIFT-752. java: Use a faster Stack implementation in TCompactProtocol

    This patch adds ShortStack, an internal implementation of Stack that works directly on primitive short objects, and makes TCompactProtocol use this. A brief performance test shows that this makes serialization about 8% faster and deserialization about 15% faster, though the actual gain you see will be dependent on the nature of your structs - the more levels, the more gain.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930593 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  3. java: Enhance TMemoryInputTransport to allow operation on specific ra…

    …nge of a buffer rather than the whole thing. This will allow us to avoid making array copies in some instances.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930574 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  4. java: add a basic test for TMemoryInputTransport

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930568 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  5. java: reorganize ProtocolTestBase slightly

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930530 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  6. THRIFT-663. java: JavaBean code generator produces incorrect setter m…

    …ethods
    
    This patch causes the beans option to suppress the builder-style setter methods. It also adds a new 'private-members' option that leaves the builder-style methods, but makes the actual instance variables private.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@930474 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 29, 2010

  1. THRIFT-723: java: Thrift buffers with set and map types in Java shoul…

    …d implement Comparable
    
    This makes structs that contain sets and maps in their hierarchy Comparable.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928944 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  2. java: Make TProtocolFactory extend Serializable.

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928901 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 28, 2010

  1. THRIFT-363. java: Maven Deploy

    This commit adds changes to build.xml so that we can generate a POM file and publish the artifact to the Apache Maven repo. For now, we haven't published yet - we'll do that at the next release.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928494 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 27, 2010

  1. java: Move contents of CompareTest into TestStruct; delete old version

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928159 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  2. java: Move contents of DeepCopyTest to TestStruct; delete old version

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928157 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  3. java: Move contents of IdentityTest into TestStruct

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928153 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 26, 2010

  1. java: get rid of old OverloadNonblockingServer.java (since it's not a…

    …ctually a test), move Fixtures up to o.a.thrift
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928103 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  2. java: convert PartialDeserializeTest to testcase of TestTDeserializer…

    … (new junit test); add apache header to a few of the new test files.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928101 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  3. java: convert Framed Transport test to JUnit, remove old version of test

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@928100 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  4. java: Convert TJSONProtocol test to JUnit, making a few minor changes…

    … to ProtocolTestBase in the process.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927967 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  5. java: Stop trying to run the deprecated version of binary and compact…

    … protocol tests, since they don't exist anymore
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927701 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  6. java: Convert Binary and Compact protocol tests to JUnit

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927699 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  7. THRIFT-719. java: Update Nonblocking and HsHa server to avoid an extr…

    …a buffer copy
    
    This patch causes Nonblocking and HsHa servers to explicitly enforce use of TFramedTransport and make sure that the actual invoker is deserializing from a TMemoryInputTransport. This should provide a substantial boost in performance.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927695 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  8. java: Add JUnit to ivy config. Convert Nonblocking server tests to us…

    …e JUnit. Framework laid to convert the remainder of the tests.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@927693 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 23, 2010

  1. THRIFT-701. java: Generated classes take up more space in jar than ne…

    …eded
    
    Use a static {} block instead of an anonymous inner class to define metaDataMap. This saves some space in jars generated by avoiding the internal class.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@926466 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored
  2. THRIFT-739. java: TCompactProtocol isn't suitable for reuse in partia…

    …lDeserialize
    
    This patch changes TProtocol to support a reset() method that should clear any internal state. Stateless protocols can ignore it; stateful ones should implement it. TDeserializer has been updated to take advantage of this method.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@926460 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 22, 2010

  1. THRIFT-736. cpp: Check for availability of pthread_mutex_timedlock

    r920679 introduced a call to pthread_mutex_timedlock, which is not
    available on all UNIX variants.  In particular, it is missing on Mac OS.
    Add a preprocessor check for the relevant feature macro.  If it fails,
    just use a trylock.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@925940 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored

Mar 17, 2010

  1. THRIFT-738. java: TCompactProtocol throws RuntimeException when it ca…

    …n't identify a type identifier
    
    This patch causes it to throw TProtocolException instead.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@924364 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 16, 2010

  1. THRIFT-734. java: Can't use primitive types in service definitions fo…

    …r bean generated code
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@923566 13f79535-47bb-0310-9956-ffa450edef68
    bryanduxbury authored

Mar 10, 2010

  1. cpp: Fix build problems introduced by r920682

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@921591 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored

Mar 09, 2010

  1. cpp: Minor TSocketPool cleanups

    - Make sure the underlying socket is always closed.
    - Don't reconnect on repeated calls to open.
    - Move some code outside of a try block.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920691 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored
  2. cpp: Make an implicit virtual declaration explicit

    This changes nothing since it's already declared virtual in the parent,
    but this is clearer.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920690 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored
  3. cpp: Don't leak memory on realloc failure in TNonblockingServer

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920689 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored
  4. cpp: Implement peek() for TFileTransport

    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920688 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored
  5. cpp: Prevent TFileTransport seekToEnd from leaking memory

    In seekToEnd we loop on readEvent to skip through the last chunk, but
    the complete events returned are disowned by readState_ and therefore
    must be freed by the caller.
    
    git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@920687 13f79535-47bb-0310-9956-ffa450edef68
    dreiss authored
Something went wrong with that request. Please try again.