Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14926

Reconsider the default value of RPC timeout and document it

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.8.1, 3.0.0-alpha3
    • None
    • common
    • None

    Description

      We use zero as the default value of RPC timeout, which mean we don't enforce any timeout aka infinity timeout. I think that zero means infinite is counter-intuitive and error-prone through some Java libs(e.g. Socket #setSoTimeout()) do that as well. Zero could be considered as a valid timeout value, while negative one isn't. If we use zero to represent infinite, which number could be used to represent zero timeout? I suggest use -1 as the default value to indicate infinite.
      We also need to document the default value and it means infinite timeout.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yufeigu Yufei Gu
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: