Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-4088

System.out in happy path

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      ./lib/java/src/org/apache/thrift/TServiceClient.java

        protected void receiveBase(TBase<?,?> result, String methodName) throws TException {
          TMessage msg = iprot_.readMessageBegin();
          if (msg.type == TMessageType.EXCEPTION) {
            TApplicationException x = new TApplicationException();
            x.read(iprot_);
            iprot_.readMessageEnd();
            throw x;
          }
          System.out.format("Received %d%n", msg.seqid);
          if (msg.seqid != seqid_) {
            throw new TApplicationException(TApplicationException.BAD_SEQUENCE_ID,
                String.format("%s failed: out of sequence response: expected %d but got %d", methodName, seqid_, msg.seqid));
          }
          result.read(iprot_);
          iprot_.readMessageEnd();
        }
      
      

      Attachments

        Issue Links

          Activity

            People

              jking3 James E. King III
              appodictic Edward Capriolo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: