You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by GitBox <gi...@apache.org> on 2019/09/04 16:31:49 UTC

[GitHub] [storm] frison commented on a change in pull request #3101: STORM-1515: Fix LocalState Corruption

frison commented on a change in pull request #3101: STORM-1515: Fix LocalState Corruption
URL: https://github.com/apache/storm/pull/3101#discussion_r320857392
 
 

 ##########
 File path: storm-client/src/jvm/org/apache/storm/utils/LocalState.java
 ##########
 @@ -123,6 +124,10 @@ private TBase deserialize(ThriftSerializedObject obj, TDeserializer td) {
             } catch (Exception e) {
                 attempts++;
                 if (attempts >= 10) {
+                    if (e.getCause() instanceof TProtocolException) {
+                        LOG.warn("LocalState file is corrupted, resetting state");
 
 Review comment:
   Done! Good idea.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services