possible bug (deadlock) when posting batch request content over a certain length #1995
Labels
priority:p0
Blocking issue. Loss of critical functions eg security/privacy violation. Bug SLA<=48hrs
type:bug
A broken experience
There seems to be a bug with posting batch request content over a certain length (greater than
DEFAULT_PIPE_SIZE = 1024
ofPipedInputStream
).Calling
graphClient.getBatchRequestBuilder().post(batchRequestContent, null))
goes into a deadlock.Could you please check this?
Expected behavior
Graph API executes the batch request and returns some kind of response.
Actual behavior
Deadlock in
PipedInputStream.awaitSpace() line: 273
PipedInputStream.receive(byte[], int, int) line: 231
PipedOutputStream.write(byte[], int, int) line: 149
ByteArrayOutputStream.writeTo(OutputStream) line: 167
BatchRequestContent.getBatchRequestContent() line: 177
CustomBatchRequestBuilder(BatchRequestBuilder).toPostRequestInformation(BatchRequestContent) line: 84
CustomBatchRequestBuilder(BatchRequestBuilder).post(BatchRequestContent, Map<String,ParsableFactory>) line: 49
CustomBatchRequestBuilder.post(BatchRequestContent, Map<String,ParsableFactory>) line: 41
...
when calling
Steps to reproduce the behavior
Maven pom.xml
Code:
The text was updated successfully, but these errors were encountered: