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

apache / iotdb / #9967

30 Aug 2023 04:22PM CUT coverage: 47.7% (+0.04%) from 47.658%
#9967

push

travis_ci

web-flow
Pipe: Fix start-time and end-time parameters not working when extracting history data (#11001) (#11002)

(cherry picked from commit 35736cc67)

12 of 12 new or added lines in 6 files covered. (100.0%)

80165 of 168062 relevant lines covered (47.7%)

0.48 hits per line

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

66.67
/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/pipe/task/subtask/DecoratingLock.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.task.subtask;
21

22
import java.util.concurrent.atomic.AtomicBoolean;
23

24
public class DecoratingLock {
1✔
25
  private final AtomicBoolean isDecorating = new AtomicBoolean(false);
1✔
26

27
  public void waitForDecorated() {
28
    while (isDecorating.get()) {
1✔
29
      try {
30
        Thread.sleep(10);
×
31
      } catch (InterruptedException e) {
×
32
        Thread.currentThread().interrupt();
×
33
      }
×
34
    }
35
  }
1✔
36

37
  public void markAsDecorating() {
38
    isDecorating.set(true);
1✔
39
  }
1✔
40

41
  public void markAsDecorated() {
42
    isDecorating.set(false);
1✔
43
  }
1✔
44
}
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