You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "ivakegg (via GitHub)" <gi...@apache.org> on 2023/08/28 19:36:06 UTC
[GitHub] [accumulo] ivakegg opened a new issue, #3731: TabletServerBatchReaderIterator gets into infinite loop
ivakegg opened a new issue, #3731:
URL: https://github.com/apache/accumulo/issues/3731
When TabletServerBatchReaderIterator gets the following exception:
org.apache.thrift.transport.TTransportException: MaxMessageSize reached
at org.apache.accumulo.core.clientImpl.TabletServerBatchReaderIterator.doLookup:913
at org.apache.accumulo.core.clientImpl.TabletServerBatchReaderIterator$QueryTask.run:401
this failed scan will be added to the failures and the processFailures routine will requeue
the scan. Given the tserver will simply create the same results for the scan, this will happen
indefinitly.
Accumulo 2.1.2
OS CenOS 7.7
Java 11
1) a MaxMessageSize reached issue should probably not be retried indefinitly.
2) we need a way to set the thrift max message size.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1697240962
@cshannon previously looked into #3134, which is related to Thrift's max message stuff, and may have some insight.
Upon a first pass investigating this, I can see that Thrift does not have an API for configuring the max message size. It has a hard-coded value of 100MB. The max frame size is 16MB, but that is configurable. I'm not sure why the max message size isn't configurable, but it seems like a patch to Thrift would be needed to do much about this.
We can try to break up the Mutations based on the max message size, or throw some client side error that isn't going to retry forever, but that's going to take a lot of wiring up of the RPC layer up into the Accumulo client library, and I'm not quite comfortable with tightly coupling those layers like that. It might be better to just impose a strict limit on the client side for the max message, using our knowledge of the hard-coded Thrift value... and work with upstream Thrift to change it or make it configurable.
However, I *think* if you set the BatchWriter maxMemory to something less than 100MB (might need to account for some overhead), you can probably avoid hitting this issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1697257663
It looks like the problem occurred in 0.14.0 with commit https://github.com/apache/thrift/commit/63213c17ad3fece91fdaaca8f59165ca3f41c5c1 (I haven't found a JIRA issue number yet). The change added a TConfiguration object and a TEndpointTransport base class for several TTransports, including the TFramedTransport that we use. However, they didn't provide new constructors to be able to pass in a TConfiguration in the child classes, and not all of them have a way to customize the TConfiguration they use.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] cshannon commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "cshannon (via GitHub)" <gi...@apache.org>.
cshannon commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1697377127
In #3134, If I recall correctly we were not applying our setting correctly to `maxFrameSize` so Thrift was hanging instead of throwing an error like it should after changes. I didn't touch anything with max message size in thrift. It's a bit confusing as there is maxFrameSize and maxMessageSize is used interchangeably a lot but they are different. We actually call it `maxMessageSize` in our [code](https://github.com/apache/accumulo/blob/5bec1c33af6c464ce75f25ade7b4bd4dba0709ea/server/base/src/main/java/org/apache/accumulo/server/rpc/TServerUtils.java#L153) and our [configuration](https://github.com/apache/accumulo/blob/5bec1c33af6c464ce75f25ade7b4bd4dba0709ea/core/src/main/java/org/apache/accumulo/core/conf/Property.java#L648) even though we apply it to `maxFrameSize` in thrift and the default is set to 1 GB.
I found some docs here:
https://github.com/apache/thrift/blob/v0.17.0/doc/specs/thrift-tconfiguration.md#maxmessagesize and https://github.com/apache/thrift/blob/v0.17.0/doc/specs/thrift-tconfiguration.md#maxframesize-vs-maxmessagesize
It says that all current implementations just send 1 frame at a time so the values are related and will essentially pick the smaller one I guess. So I think we should really be applying our max message size setting in our configuration to both max message and max frame size in thrift and that would likely solve the issue, but as @ctubbsii pointed out, it doesn't look like we can currently do that without a patch to make it configurable.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] jsduncan2 commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "jsduncan2 (via GitHub)" <gi...@apache.org>.
jsduncan2 commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1696374252
We are also seeing this with the BatchWriter. If one large mutation (> 90 * 1024 * 1024 bytes) or several mutations that add up to that same size or greater are sent, we enter an infinite loop. The BatchWriter client receives a “java.io.IOException: org.apache.thrift.transport.TTransportException: Socket is closed by peer.” here: https://github.com/apache/accumulo/blob/main/core/src/main/java/org/apache/accumulo/core/clientImpl/TabletServerBatchWriter.java#L897
For what it’s worth, Thrift 0.14 seems to have added this max message size check (different from the max frame size check): https://issues.apache.org/jira/browse/THRIFT-5021
A possible additional improvement could be to have the BatchWriter break its set of mutations into chunks that are smaller than Thrift’s max message size (while also respecting all other constraints).
This doesn’t address the case where a single mutations exceeds the max message size limit. I’m not sure the best solution here. Possibly throwing a `MutationsRejectedException`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1702121351
I created https://issues.apache.org/jira/browse/THRIFT-5732 upstream.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] asfgit closed issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "asfgit (via GitHub)" <gi...@apache.org>.
asfgit closed issue #3731: TabletServerBatchReaderIterator gets into infinite loop
URL: https://github.com/apache/accumulo/issues/3731
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [accumulo] ctubbsii commented on issue #3731: TabletServerBatchReaderIterator gets into infinite loop
Posted by "ctubbsii (via GitHub)" <gi...@apache.org>.
ctubbsii commented on issue #3731:
URL: https://github.com/apache/accumulo/issues/3731#issuecomment-1697500992
We could put an upper-bound on our own configuration, so you can't set the max frame size bigger than the hard-coded limit. I'm not sure what configuration triggered this, though. There's still the issue of the fact that it's going to cause an exception that isn't going to fall out... mostly because it's hard to distinguish the error from transient transport exceptions, except for the e.getMessage() string, which is probably a bit fragile.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org