Skip to content
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

Merged
merged 5 commits into from
Apr 3, 2019
Merged

Conversation

CoffeeLatte007
Copy link
Contributor

Ⅰ. Describe what this PR did

  1. Enable users to configure gloab session, branch session and write buffer size

  2. 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.

  3. 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

@codecov-io
Copy link

codecov-io commented Apr 2, 2019

Codecov Report

Merging #713 into develop will decrease coverage by 0.02%.
The diff coverage is 33.98%.

Impacted file tree graph

@@              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
Impacted Files Coverage Δ Complexity Δ
...a/com/alibaba/fescar/common/util/CompressUtil.java 0% <0%> (ø) 0 <0> (?)
...m/alibaba/fescar/server/session/BranchSession.java 76.51% <38.23%> (-12.78%) 37 <10> (+6)
...m/alibaba/fescar/server/session/GlobalSession.java 81.16% <50%> (-4.65%) 44 <4> (+2)
...scar/server/store/FileTransactionStoreManager.java 52.5% <53.84%> (-0.66%) 15 <0> (ø)
...a/com/alibaba/fescar/server/store/StoreConfig.java 80% <80%> (ø) 4 <4> (?)
...scar/core/rpc/netty/AbstractRpcRemotingClient.java 23.11% <0%> (+3.22%) 7% <0%> (ø) ⬇️
...om/alibaba/fescar/core/rpc/netty/ShutdownHook.java 81.25% <0%> (+25%) 8% <0%> (+2%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f4d0e42...f1fce97. Read the comment docs.

@xingfudeshi
Copy link
Member

i left some comments

@CoffeeLatte007
Copy link
Contributor Author

i left some comments

done

Copy link
Contributor

@zhangthen zhangthen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@xingfudeshi xingfudeshi merged commit 5eb0b34 into apache:develop Apr 3, 2019
@xingfudeshi xingfudeshi changed the title ADD: session size configuration add session size configuration Apr 3, 2019
Copy link
Member

@slievrly slievrly left a 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();
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants