Skip to content

Commit 582814a

Browse files
committed
fix(align field annotation and adjust log level in ProfileAnalyzer)
1 parent dcf2796 commit 582814a

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/profiling/trace/ProfileThreadSnapshotRecord.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ public class ProfileThreadSnapshotRecord extends Record {
7070
private int sequence;
7171
@Column(name = STACK_BINARY)
7272
private byte[] stackBinary;
73-
@ElasticSearch.EnableDocValues
7473
@Column(name = LANGUAGE_TYPE)
7574
@BanyanDB.NoIndexing
7675
private ProfileLanguageType language = ProfileLanguageType.JAVA;

oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/profiling/trace/analyze/ProfileAnalyzer.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ public ProfileAnalyzation analyze(final List<SegmentProfileAnalyzeQuery> queries
8888
}).flatMap(Collection::stream)
8989
.collect(Collectors.toList());
9090

91-
if (LOGGER.isInfoEnabled()) {
91+
if (LOGGER.isDebugEnabled()) {
9292
final int totalRanges = sequenceSearch.getRanges().size();
93-
LOGGER.info("Profile analyze fetched records, segmentId(s)={}, ranges={}, recordsCount={}",
93+
LOGGER.debug("Profile analyze fetched records, segmentId(s)={}, ranges={}, recordsCount={}",
9494
sequenceSearch.getRanges().stream().map(SequenceRange::getSegmentId).distinct().collect(Collectors.toList()),
9595
totalRanges, records.size());
9696
}
@@ -185,15 +185,17 @@ protected SequenceSearch getAllSequenceRange(String segmentId, long start, long
185185
int minSequence = getProfileThreadSnapshotQueryDAO().queryMinSequence(segmentId, start, end);
186186
int maxSequence = getProfileThreadSnapshotQueryDAO().queryMaxSequence(segmentId, start, end) + 1;
187187

188-
if (LOGGER.isInfoEnabled()) {
189-
LOGGER.info("Profile analyze sequence window: segmentId={}, start={}, end={}, minSeq={}, maxSeq(exclusive)={}",
188+
if (LOGGER.isDebugEnabled()) {
189+
LOGGER.debug("Profile analyze sequence window: segmentId={}, start={}, end={}, minSeq={}, maxSeq(exclusive)={}",
190190
segmentId, start, end, minSequence, maxSequence);
191191
}
192192

193193
// data not found
194194
if (maxSequence <= 0) {
195-
LOGGER.info("Profile analyze not found any sequence in window: segmentId={}, start={}, end={}",
196-
segmentId, start, end);
195+
if (LOGGER.isDebugEnabled()) {
196+
LOGGER.debug("Profile analyze not found any sequence in window: segmentId={}, start={}, end={}",
197+
segmentId, start, end);
198+
}
197199
return null;
198200
}
199201

0 commit comments

Comments
 (0)