neuyilan commented on a change in pull request #2635:
URL: https://github.com/apache/iotdb/pull/2635#discussion_r571514592
##########
File path: tsfile/src/main/java/org/apache/iotdb/tsfile/utils/PublicBAOS.java
##########
@@ -76,12 +76,12 @@ public void writeTo(OutputStream out) throws IOException {
* reusing the already allocated buffer space.
*/
@Override
- public void reset() {
+ public synchronized void reset() {
Review comment:
Got it, I prefer to post this link here in this function, so that other
developers know about the problem, otherwise, sonar will report a bug, and
other developers may fix it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]