• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

apache / iotdb / #9867

18 Aug 2023 06:05AM UTC coverage: 48.003% (-0.08%) from 48.081%
#9867

push

travis_ci

web-flow
[To rel/1.2] [IOTDB-6115] Fix Limit & Offset push down doesn't take effect while there exist null value

103 of 103 new or added lines in 23 files covered. (100.0%)

79802 of 166243 relevant lines covered (48.0%)

0.48 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

27.27
/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/agent/receiver/PipeReceiverAgent.java
1
/*
2
 * Licensed to the Apache Software Foundation (ASF) under one
3
 * or more contributor license agreements.  See the NOTICE file
4
 * distributed with this work for additional information
5
 * regarding copyright ownership.  The ASF licenses this file
6
 * to you under the Apache License, Version 2.0 (the
7
 * "License"); you may not use this file except in compliance
8
 * with the License.  You may obtain a copy of the License at
9
 *
10
 *     http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing,
13
 * software distributed under the License is distributed on an
14
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 * KIND, either express or implied.  See the License for the
16
 * specific language governing permissions and limitations
17
 * under the License.
18
 */
19

20
package org.apache.iotdb.db.pipe.agent.receiver;
21

22
import org.apache.iotdb.db.conf.IoTDBDescriptor;
23
import org.apache.iotdb.db.pipe.receiver.airgap.IoTDBAirGapReceiverAgent;
24
import org.apache.iotdb.db.pipe.receiver.legacy.IoTDBLegacyPipeReceiverAgent;
25
import org.apache.iotdb.db.pipe.receiver.thrift.IoTDBThriftReceiverAgent;
26

27
import org.apache.commons.io.FileUtils;
28
import org.slf4j.Logger;
29
import org.slf4j.LoggerFactory;
30

31
import java.io.File;
32
import java.io.IOException;
33

34
/** PipeReceiverAgent is the entry point of all pipe receivers' logic. */
35
public class PipeReceiverAgent {
36

37
  private static final Logger LOGGER = LoggerFactory.getLogger(PipeReceiverAgent.class);
1✔
38

39
  private final IoTDBThriftReceiverAgent thriftAgent;
40
  private final IoTDBAirGapReceiverAgent airGapAgent;
41
  private final IoTDBLegacyPipeReceiverAgent legacyAgent;
42

43
  public PipeReceiverAgent() {
1✔
44
    thriftAgent = new IoTDBThriftReceiverAgent();
1✔
45
    airGapAgent = new IoTDBAirGapReceiverAgent();
1✔
46
    legacyAgent = new IoTDBLegacyPipeReceiverAgent();
1✔
47
  }
1✔
48

49
  public IoTDBThriftReceiverAgent thrift() {
50
    return thriftAgent;
×
51
  }
52

53
  public IoTDBAirGapReceiverAgent airGap() {
54
    return airGapAgent;
×
55
  }
56

57
  public IoTDBLegacyPipeReceiverAgent legacy() {
58
    return legacyAgent;
×
59
  }
60

61
  public void cleanPipeReceiverDir() {
62
    final File receiverFileDir =
×
63
        new File(IoTDBDescriptor.getInstance().getConfig().getPipeReceiverFileDir());
×
64

65
    try {
66
      FileUtils.deleteDirectory(receiverFileDir);
×
67
      LOGGER.info("Clean pipe receiver dir {} successfully.", receiverFileDir);
×
68
    } catch (Exception e) {
×
69
      LOGGER.warn("Clean pipe receiver dir {} failed.", receiverFileDir, e);
×
70
    }
×
71

72
    try {
73
      FileUtils.forceMkdir(receiverFileDir);
×
74
      LOGGER.info("Create pipe receiver dir {} successfully.", receiverFileDir);
×
75
    } catch (IOException e) {
×
76
      LOGGER.warn("Create pipe receiver dir {} failed.", receiverFileDir, e);
×
77
    }
×
78
  }
×
79
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc