Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1724

Lots of error messages not in log4net format data while rebalancing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.1
    • Component/s: None
    • Labels:
      None

      Description

      With 2.6.0 release candidate 6a364d4bb3234cc5091fe239dbd26d35d7e5abff, there are a lot of error messages like

      19:35:09 [2436.80 INFO] (SDKD log:137) log4net:ERROR Exception while rendering object of type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage] 
      19:35:09 [2436.80 INFO] (SDKD log:137) System.FormatException: Input string was not in a correct format. 
      19:35:09 [2436.80 INFO] (SDKD log:137) +++ Received exception of ID 0 
      19:35:09 [2436.80 INFO] (SDKD log:137) log4net:ERROR Exception while rendering object of type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage] 
      19:35:09 [2436.80 INFO] (SDKD log:137) System.FormatException: Input string was not in a correct format. 
      19:35:09 [2436.80 INFO] (SDKD log:137) +++ Received exception of ID 0 
      19:35:09 [2436.80 INFO] (SDKD log:137) log4net:ERROR Exception while rendering object of type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage] 
      

      Looks like caused by https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/IO/ConnectionBase.cs#L327

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

          Hide
          jmorris Jeff Morris added a comment - - edited

          I tried and cannot replicate, however stacktrace points here: https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/IO/ConnectionBase.cs#L327

          And a similar, previous issue makes me think the bug is related to the JSON "{" and "}" brackets causing a formatting issue: https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/Tracing/OperationContext.cs#L43

          Show
          jmorris Jeff Morris added a comment - - edited I tried and cannot replicate, however stacktrace points here: https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/IO/ConnectionBase.cs#L327 And a similar, previous issue makes me think the bug is related to the JSON "{" and "}" brackets causing a formatting issue:  https://github.com/couchbase/couchbase-net-client/blob/master/Src/Couchbase/Tracing/OperationContext.cs#L43
          Show
          jmorris Jeff Morris added a comment - https://issues.apache.org/jira/browse/LOG4NET-340
          Hide
          jmorris Jeff Morris added a comment - - edited

          Fixed by replacing curly brackets w/regular brackets, before patch:

          2018-08-03 19:06:30,235 [Worker#STA_NP] INFO Couchbase.CouchbaseBucket - <log4net.Error>Exception rendering object type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage]<stackTrace>System.FormatException: Input string was not in a correct format.
           at System.Text.StringBuilder.FormatError()
           at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
           at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
           at System.String.Format(IFormatProvider provider, String format, Object[] args)
           at Common.Logging.Factory.AbstractLogger.StringFormatFormattedMessage.ToString()
           at log4net.ObjectRenderer.DefaultRenderer.RenderObject(RendererMap rendererMap, Object obj, TextWriter writer)
           at log4net.ObjectRenderer.RendererMap.FindAndRender(Object obj, TextWriter writer)</stackTrace></log4net.Error>

          After patch:

          2018-08-03 19:08:12,574 [Worker#STA_NP] INFO Couchbase.CouchbaseBucket - The operation has timed out. ["s":"my-service","i":"correlation-id","b":"bucket","l":"local-1234","r":"remote-1234","t":123456]

          Show
          jmorris Jeff Morris added a comment - - edited Fixed by replacing curly brackets w/regular brackets, before patch: 2018 - 08 - 03 19 : 06 : 30 , 235 [Worker#STA_NP] INFO Couchbase.CouchbaseBucket - <log4net.Error>Exception rendering object type [Common.Logging.Factory.AbstractLogger+StringFormatFormattedMessage]<stackTrace>System.FormatException: Input string was not in a correct format. at System.Text.StringBuilder.FormatError() at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args) at System.String.Format(IFormatProvider provider, String format, Object[] args) at Common.Logging.Factory.AbstractLogger.StringFormatFormattedMessage.ToString() at log4net.ObjectRenderer.DefaultRenderer.RenderObject(RendererMap rendererMap, Object obj, TextWriter writer) at log4net.ObjectRenderer.RendererMap.FindAndRender(Object obj, TextWriter writer)</stackTrace></log4net.Error> After patch: 2018 - 08 - 03 19 : 08 : 12 , 574 [Worker#STA_NP] INFO Couchbase.CouchbaseBucket - The operation has timed out. [ "s" : "my-service" , "i" : "correlation-id" , "b" : "bucket" , "l" : "local-1234" , "r" : "remote-1234" , "t" : 123456 ]

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              jaekwon.park Jae Park [X] (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.