Uploaded image for project: 'Apache InLong'
  1. Apache InLong
  2. INLONG-101

Optimize code & Fix type

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Low
    • Resolution: Fixed
    • None
    • 0.5.0
    • None

    Description

      1. Optimize code

      if (addrMap4Failover.get(tmpNodeAddrInfo.getHostPortStr()) == null) {
              addrMap4Failover.put(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
      }
      

      Change to

      addrMap4Failover.putIfAbsent(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
      

      2. Fix type
      getParameteres -> getParameters
      datestring -> dateString
      setunFlushDataHold -> setUnflushDataHold
      getunFlushDataHold -> getUnflushDataHold

      Because I do n’t know whether it will affect other components, such as log parsing, etc., I did not change it here

      .append(",\"unFlushDataHold\":").append(getUnflushDataHold())
      

      Attachments

        Issue Links

          Activity

            People

              viviel viviel
              viviel viviel
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m