-
Notifications
You must be signed in to change notification settings - Fork 247
增加针对大推送的自适应攒批的能力 #378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
huanglongchao
merged 10 commits into
sofastack:master
from
hui-cha:perf/cpu-mem-optimization
Jan 5, 2026
Merged
增加针对大推送的自适应攒批的能力 #378
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
d05289f
Optimize Hessian serialization and implement adaptive delay for large…
hui-cha 78a06ff
bugfix: Fixed inconsistency between equals and compareTo methods in C…
hui-cha 2b47503
bugfix: Fix potential inconsistency in worker configuration during st…
hui-cha 0630e0b
Refactor task merge logic for small/large task transitions
hui-cha 2c730e4
make realPubNum in NotThreadSafePublisherMap atomic
hui-cha fd714a7
Fix some edge cases
hui-cha eaf76be
update hessian versionto 3.5.6
hui-cha ba4dc93
add concurrent push and pop ut for ChangeTaskQueue
hui-cha b384043
update version to 6.6.2
hui-cha 6ee7aed
Add automatic dump functionality & fix memory leak issues in unit tests.
hui-cha File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,21 +35,33 @@ public class DataChangeRequest implements Serializable { | |
|
|
||
| private final Map<String, DatumVersion> dataInfoIds; | ||
|
|
||
| private final Map<String, Integer> publisherCounts; | ||
|
|
||
| private final String dataCenter; | ||
|
|
||
| private final TraceTimes times; | ||
|
|
||
| public DataChangeRequest( | ||
| String dataCenter, Map<String, DatumVersion> dataInfoIds, TraceTimes times) { | ||
| String dataCenter, | ||
| Map<String, DatumVersion> dataInfoIds, | ||
| Map<String, Integer> publisherCounts, | ||
| TraceTimes times) { | ||
| this.dataCenter = dataCenter; | ||
| this.dataInfoIds = dataInfoIds; | ||
| this.publisherCounts = publisherCounts; | ||
| this.times = times; | ||
| } | ||
|
Comment on lines
44
to
53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add null safety check for publisherCounts parameter. The constructor accepts 🔎 Apply this diff to add null safety: public DataChangeRequest(
String dataCenter,
Map<String, DatumVersion> dataInfoIds,
Map<String, Integer> publisherCounts,
TraceTimes times) {
this.dataCenter = dataCenter;
this.dataInfoIds = dataInfoIds;
- this.publisherCounts = publisherCounts;
+ this.publisherCounts = publisherCounts != null ? publisherCounts : Collections.emptyMap();
this.times = times;
}🤖 Prompt for AI Agents |
||
|
|
||
| public Map<String, DatumVersion> getDataInfoIds() { | ||
| return Collections.unmodifiableMap(dataInfoIds); | ||
| } | ||
|
|
||
| public Map<String, Integer> getPublisherCounts() { | ||
| return null == publisherCounts | ||
| ? Collections.emptyMap() | ||
| : Collections.unmodifiableMap(publisherCounts); | ||
| } | ||
|
|
||
| public String getDataCenter() { | ||
| return dataCenter; | ||
| } | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: sofastack/sofa-registry
Length of output: 742
🏁 Script executed:
Repository: sofastack/sofa-registry
Length of output: 4028
Hessian 3.5.6 is not available in public Maven repositories.
Verification confirms that version 3.5.6 does not exist in Maven Central or OSS Sonatype. The build depends on internal Alipay repositories (
mvn.test.alipay.netandmvn.dev.alipay.net) that are not publicly accessible. This contradicts the earlier indication that the official version would be released—it has not been published to public repositories. This creates a build dependency on proprietary Alipay infrastructure, which will prevent external developers from building this project.🤖 Prompt for AI Agents