Skip to content

Commit

Permalink
Merge branch 'master' into fixPopUpKeepData
Browse files Browse the repository at this point in the history
  • Loading branch information
tomsun28 committed May 23, 2024
2 parents 1b40ffb + 7a670e8 commit 4bbe561
Show file tree
Hide file tree
Showing 261 changed files with 12,157 additions and 1,061 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/doc-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

name: DOC CI

on:
push:
branches: [ master, dev]
paths:
- 'home/**'
pull_request:
branches: [ master, dev]
paths:
- 'home/**'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: NPM INSTALL
working-directory: home
run: npm install
- name: NPM BUILD
working-directory: home
run: npm run build
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Add WeChat account `tan-cloud` to pull you into the WeChat group.

6. 待本地后端启动后,在web-app目录下启动本地前端 `ng serve --open`

7. 浏览器访问 localhost:4200 即可开始,默认账号密码 admin/hertzbeat**
7. 浏览器访问 localhost:4200 即可开始,默认账号密码 *admin/hertzbeat*

### 寻找任务

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
import lombok.Builder;
import lombok.Data;


/**
* resource identifier in cache
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

package org.apache.hertzbeat.collector.collect.common.cache;


import com.google.common.util.concurrent.ThreadFactoryBuilder;
import com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap;
import java.util.Map;
Expand Down Expand Up @@ -198,15 +197,18 @@ public Optional<C> getCache(T key, boolean refreshCache) {
cacheMap.remove(key);
return Optional.empty();
}
C value = cacheMap.get(key);
if (value == null) {
log.error("[connection common cache] value is null, remove it, key {}.", key);
cacheMap.remove(key);
timeoutMap.remove(key);
} else if (refreshCache) {
cacheTime[0] = System.currentTimeMillis();
timeoutMap.put(key, cacheTime);
}
C value = cacheMap.compute(key, (k, v) -> {
if (v == null) {
log.error("[connection common cache] value is null, remove it, key {}.", key);
timeoutMap.remove(key);
return null;
}
if (refreshCache) {
cacheTime[0] = System.currentTimeMillis();
timeoutMap.put(key, cacheTime);
}
return v;
});
return Optional.ofNullable(value);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import org.apache.sshd.common.kex.BuiltinDHFactories;
import org.apache.sshd.core.CoreModuleProperties;


/**
* common ssh pool client
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
@Order(value = Ordered.HIGHEST_PRECEDENCE)
public class JdbcSpiLoader implements CommandLineRunner {


@Override
public void run(String... args) throws Exception {
log.info("start load jdbc drivers");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ public class DnsCollectImpl extends AbstractCollect {
private static final String AUTHORITY_ROW_COUNT = "authorityRowCount";
private static final String ADDITIONAL_ROW_COUNT = "additionalRowCount";


@Override
public void preCheck(Metrics metrics) throws IllegalArgumentException {
// compatible with monitoring template configurations of older versions
Expand Down Expand Up @@ -207,7 +206,6 @@ private List<String> getSectionInfo(Message message, int section) {
return infoList;
}


@Data
@Builder
@NoArgsConstructor
Expand Down
Loading

0 comments on commit 4bbe561

Please sign in to comment.