-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
add session size configuration #713
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #713 +/- ##
=============================================
- Coverage 32.8% 32.78% -0.03%
- Complexity 906 920 +14
=============================================
Files 227 229 +2
Lines 8851 8921 +70
Branches 1061 1083 +22
=============================================
+ Hits 2904 2925 +21
- Misses 5618 5653 +35
- Partials 329 343 +14
Continue to review full report at Codecov.
|
server/src/main/java/com/alibaba/fescar/server/store/StoreConfig.java
Outdated
Show resolved
Hide resolved
server/src/main/java/com/alibaba/fescar/server/session/BranchSession.java
Outdated
Show resolved
Hide resolved
i left some comments |
done |
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.
+1
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.
should add config to nacos-config.txt
*/ | ||
public class StoreConfig { | ||
|
||
private static Configuration fileConfiguration = ConfigurationFactory.getInstance(); |
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.
final is better And change the name toUpperCase
Ⅰ. Describe what this PR did
Enable users to configure gloab session, branch session and write buffer size
For branch session, if it is too large, it will first try to compress lockkey, and if it is larger than the maximum, an exception will be thrown.
I want to do the compression of RPC, but the RPC protocol is not very friendly. If we want to do the body compression of RPC, we need to adjust the protocol design
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews