dockerzhang opened a new issue #700:
URL: https://github.com/apache/incubator-inlong/issues/700
<p>1. Optimize code</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
<pre class="code-java">
<span class="code-keyword">if</span>
(addrMap4Failover.get(tmpNodeAddrInfo.getHostPortStr()) == <span
class="code-keyword">null</span>) {
addrMap4Failover.put(tmpNodeAddrInfo.getHostPortStr(), tmpNodeAddrInfo);
}
</pre>
</div></div>
<p>Change to</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
<pre class="code-java">
addrMap4Failover.putIfAbsent(tmpNodeAddrInfo.getHostPortStr(),
tmpNodeAddrInfo);
</pre>
</div></div>
<p>2. Fix type<br/>
getParameteres -> getParameters<br/>
datestring -> dateString<br/>
setunFlushDataHold -> setUnflushDataHold<br/>
getunFlushDataHold -> getUnflushDataHold</p>
<p>Because I do n’t know whether it will affect other components, such as
log parsing, etc., I did not change it here</p>
<div class="code panel" style="border-width: 1px;"><div class="codeContent
panelContent">
<pre class="code-java">
.append(<span class="code-quote">",\"</span>unFlushDataHold\<span
class="code-quote">":"</span>).append(getUnflushDataHold())
</pre>
</div></div>
<i>JIRA link - <a
href="https://issues.apache.org/jira/browse/INLONG-101">[INLONG-101]</a>
created by viviel</i>
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]