Skip to content

[IOTDB-1899] Fix stream closed exception during compaction#4457

Merged
qiaojialin merged 12 commits intoapache:masterfrom
THUMarkLau:fix_master_stream_closed
Nov 27, 2021
Merged

[IOTDB-1899] Fix stream closed exception during compaction#4457
qiaojialin merged 12 commits intoapache:masterfrom
THUMarkLau:fix_master_stream_closed

Conversation

@THUMarkLau
Copy link
Copy Markdown
Contributor

Description

In the process of IoTDB running, the compaction thread sometimes throws IOException: Stream Closed.

Cause

Before the compaction task is executed, it will be temporarily stored in the cache queue of the CompactionTaskManager. Before joining the compaction queue, we will judge whether there are the same compaction tasks in the queue to avoid duplication. But if a task is being executed in the thread pool, at this time an identical compaction task may be allowed to be submitted to the queue (because the same task does not exist in the queue). Therefore, a compaction task may be executed at the same time.

@coveralls
Copy link
Copy Markdown

coveralls commented Nov 24, 2021

Coverage Status

Coverage increased (+0.007%) to 67.316% when pulling 3c5440f on THUMarkLau:fix_master_stream_closed into be43397 on apache:master.

@qiaojialin qiaojialin merged commit f5a7b99 into apache:master Nov 27, 2021
@THUMarkLau THUMarkLau deleted the fix_master_stream_closed branch November 30, 2021 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants