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

Reconsider the default value of RPC timeout and document it

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.8.1, 3.0.0-alpha3
    • Fix Version/s: None
    • Component/s: common
    • Labels:
      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

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

                Dates

                • Created:
                  Updated: