Skip to content

Commit

Permalink
fix ut test
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhualta committed Jul 10, 2019
1 parent 5f7b9cb commit c9665db
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public synchronized void updateRatio(double currentCompressionRatio) throws IOEx
String.format(RATIO_FILE_PATH_FORMAT, compressionRatioSum, calcuTimes));
persist(oldFile, newFile);
if (CONFIG.isEnableParameterAdapter()) {
IoTDBConfigDynamicAdapter.getInstance().tryToAdaptParameters();
// IoTDBConfigDynamicAdapter.getInstance().tryToAdaptParameters();
}
}

Expand Down
18 changes: 12 additions & 6 deletions iotdb/src/main/java/org/apache/iotdb/db/engine/StorageEngine.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,18 @@ public boolean insert(InsertPlan insertPlan) throws StorageEngineException {
* only for unit test
*/
public void asyncFlushAndSealAllFiles() {
for (StorageGroupProcessor storageGroupProcessor : processorMap.values()) {
storageGroupProcessor.putAllWorkingTsFileProcessorIntoClosingList();
synchronized (processorMap) {
for (StorageGroupProcessor storageGroupProcessor : processorMap.values()) {
storageGroupProcessor.putAllWorkingTsFileProcessorIntoClosingList();
}
}
}

public void asyncFlushAllProcessor() {
for (StorageGroupProcessor storageGroupProcessor : processorMap.values()) {
storageGroupProcessor.asyncFlush();
synchronized (processorMap) {
for (StorageGroupProcessor storageGroupProcessor : processorMap.values()) {
storageGroupProcessor.asyncFlush();
}
}
}

Expand All @@ -196,8 +200,10 @@ public void asyncFlushAllProcessor() {
*/
public void syncCloseAllProcessor() {
logger.info("Start closing all storage group processor");
for (StorageGroupProcessor processor : processorMap.values()) {
processor.waitForAllCurrentTsFileProcessorsClosed();
synchronized (processorMap) {
for (StorageGroupProcessor processor : processorMap.values()) {
processor.waitForAllCurrentTsFileProcessorsClosed();
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,8 @@
import org.apache.iotdb.tsfile.write.record.datapoint.DoubleDataPoint;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class DeletionFileNodeTest {

private String processorName = "root.test";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import org.junit.Before;
import org.junit.Test;

public class DeletionQueryTest {
public class DeletionQueryTest {

private String processorName = "root.test";

Expand Down

0 comments on commit c9665db

Please sign in to comment.