instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
sofastack__sofa-common-tools__159
sofastack/sofa-common-tools
159
defect
1e5917289091965f444abc041fc988f0a2337ba6
c0570b58ef160be9411ff32beacce8b6ee8c0c47
Add ConfigSourceCacheWrapper to support config cache
### Motivation: Getting config may cost a lot. I add a guava cache wrapper class to save the cost.
diff --git a/pom.xml b/pom.xml index 61fbfa36..4a959543 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,7 @@ <commons.logging.version>1.1.1</commons.logging.version> <spring.boot.version>1.5.16.RELEASE</spring.boot.version> <junit.version>4.13.1</junit.version> + <guava.version>31.0.1-...
3
2
0
[{"id": "G0", "claim": "The guava version 31.0.1-jre set in pom.xml is quite high and introducing a lower version could cause problems, so it should be lowered.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Wrapping a ConfigSource in ConfigSour...
null
sofastack__sofa-common-tools__202
sofastack/sofa-common-tools
202
defect
68b0322271867d403050b48fe8568fad5d99bfd0
0ab352dbaf5b9f2fb344a54152b953b26210a1b8
upgrade to 1.4.0, add recorder support
### Motivation: In SOFA application scenario, RPC time-consuming analysis and application startup time-consuming analysis have profiling demands, in order to separate the recorder interface and implementation, need to provide an service discovery mechanism. ### Modification: add recorder spi and provide record...
diff --git a/pom.xml b/pom.xml index cfec2491..fd92906e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ <groupId>com.alipay.sofa.common</groupId> <artifactId>sofa-common-tools</artifactId> - <version>1.3.15</version> + <version>1.4.0</version> <packaging>jar</packaging> <name>${project....
1
1
0
[{"id": "G0", "claim": "Use the ConfigLoggerFactory built into sofa-common-tools instead of the plain slf4j LoggerFactory in RecorderManager.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-jraft__1109
sofastack/sofa-jraft
1,109
defect
f45e961d0761df7f69741591538a160a5bbce581
53702797009c8e58b3dfbe37f4c16f732380d3fc
fix: last committed index in BallotBox
### Motivation & Modification: Main changes: * Fixed #1049 * Try to initialize the `lastCommittedIndex` in `BallotBox` to a proper value when restart #1092 * Fail fast when log manager is overloaded while applying tasks #1105 ### Result: #1049 , #1092 , #1105 <!-- This is an auto-generated comment...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/BallotBox.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/BallotBox.java index d24223beb..34ac827ec 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/BallotBox.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Ballot...
8
2
0
[{"id": "G0", "claim": "In the NodeTest change-peers-chaos test, the loop should handle InterruptedException and ExecutionException from future.get(20, TimeUnit.SECONDS) instead of catching only TimeoutException, since a failing task would throw an unhandled ExecutionException.", "category": "testing", "verdict": "unce...
null
sofastack__sofa-jraft__1113
sofastack/sofa-jraft
1,113
defect
b401b94c006316e901ed1d54bbf0201a779584d8
02721d75b8e46c79390be43653cad177aae5fb4a
chore: return false when peerId is blank
### Motivation: When peerId satisfies StringUtils.isBlank(s) == true, no further judgment is required ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR. <!-- This is an au...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java index 6851f1616..8c9ec8b4e 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId....
1
1
1
[{"id": "G0", "claim": "The pull request's change to PeerId.parse (blank/empty handling) has no unit test; one should be added.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sofastack__sofa-jraft__1115
sofastack/sofa-jraft
1,115
defect
6be4448a4a7e2b1a87435f0418e6ad6cbc41c9e4
2f674636c5985f76b58346157dcd33e046d1671c
fix: trim peer str
### Motivation: trim peerstr,使其更健壮? ### Modification: trim peerstr,使其更健壮? ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug F...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/conf/Configuration.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/conf/Configuration.java index 71759806b..c55c822a3 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/conf/Configuration.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
1
1
0
[{"id": "G0", "claim": "Add a unit test ensuring peerStr strings with leading or trailing spaces are correctly parsed after the trim change.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-jraft__1125
sofastack/sofa-jraft
1,125
defect
d82b30bdd74ca54dc476991de69a0a56ebf62ed9
82f3f8b468b922345a4f6d4dfec55035fa2733f9
feat: fix typo
### Motivation: 1. fix typo 2. adjust the test code order and method of obtaining term id ### Modification: 1. rename testAppendMantyLargeEntries to testAppendManyLargeEntries 2. rename testAppendEntresConflicts to testAppendEntriesConflicts 3. adjust test case testAddManyEntries ### Result: Fixes #<Git...
diff --git a/jraft-core/src/test/java/com/alipay/sofa/jraft/storage/impl/BaseLogStorageTest.java b/jraft-core/src/test/java/com/alipay/sofa/jraft/storage/impl/BaseLogStorageTest.java index 7152d56d6..60b8771a3 100644 --- a/jraft-core/src/test/java/com/alipay/sofa/jraft/storage/impl/BaseLogStorageTest.java +++ b/jraft-c...
1
1
0
[{"id": "G0", "claim": "In BaseLogStorageTest, the many other similar getTerm calls should also be updated to retrieve the term via the entry (getId().getTerm()) all at once, instead of only the one call changed at line 152.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced...
null
sofastack__sofa-jraft__1153
sofastack/sofa-jraft
1,153
defect
494f86804f9d9efd53b71bf050f9bd2ea08e437b
1b2cea2ff4bdf7f2d14327c8c9fc0663c598742a
NPE in NodeImpl
### Motivation: We want to make sure that `com.alipay.sofa.jraft.storage.impl.LogManagerImpl#getLastLogId` won't return `null`, that can lead to NPEs when a Node is stopping https://github.com/sofastack/sofa-jraft/issues/1152 ### Modification: Describe the idea and modifications you've done. ### Result: ...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java index 4f08e89f8..82805dfe0 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java +++ b/jraft-core/src/main...
1
1
0
[{"id": "G0", "claim": "In getLastLogId, when c.lastLogId is null, the code should simply throw IllegalStateException instead of awaiting shutDownLatch and returning a synthesized LogId.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-jraft__1190
sofastack/sofa-jraft
1,190
defect
2cef7ec5517cdf1fe30a3bcf87e68c300c9f3e7f
51e3c8aa24f352ebdab3374e6e97df8c407c86f1
feat: impl soft limit on cached log entries in memory
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Ad the title said. * Adds a new raft option `maxLogsInMemoryBytes`, which is soft limit on maximum cached log entries memory (bytes). After reach...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/Ballot.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/Ballot.java index 5f9f1eb0b..e63af4588 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/Ballot.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/Ballot....
16
4
3
[{"id": "G0", "claim": "The magic numbers (16, 32, 36, 9) in LogEntry.estimatedSize() should be extracted to named constants or documented so their origin is clear.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The hard-coded values (20, 8, 48)...
null
sofastack__sofa-jraft__1191
sofastack/sofa-jraft
1,191
defect
94c0a41615aa7b2adf08b05d7977f1e37aec4d3f
5e4a51f797d78914d67f92c5d603979009874127
feat: only retains request header to reduce memory during replication
### Motivation: Retains only essential information while awaiting a response during replication. ### Modification: Currently, replicator sends entries asynchronously, but the RPC invocation callback retains the entire request in memory, delaying its release. This is especially problematic for large requests, as ...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java index f44543826..0453aaee9 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Rep...
4
2
0
[{"id": "G0", "claim": "The conversion from AppendEntriesRequest to RpcRequestHeader is duplicated at the two call sites (Replicator.java lines 824 and 1694) and should be extracted into a common helper method to reduce duplication and improve maintainability.", "category": "maintainability", "verdict": "supported", "p...
null
sofastack__sofa-jraft__1243
sofastack/sofa-jraft
1,243
defect
eccaec1d0eb7be212b122a18251dc9a042ecf755
eede22bef0effd3f029dc629a3c8f24235f73aff
fix: check setVotedFor() return value in handleRequestVoteRequest
## Summary Fixes #1241. `handleRequestVoteRequest()` sets the in-memory `votedId` before calling `metaStorage.setVotedFor()` but never checks the return value. If the disk write fails (I/O error) but the process survives, the response is still `granted=true` because the in-memory `votedId` was already set. After ...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java index 5d98359ea..9d61f944c 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl....
7
3
2
[{"id": "G0", "claim": "The injected setVotedFor() failure should be deterministic and truly one-shot: File#setWritable(false) is best-effort and its return value is ignored, so the test may silently stop simulating the I/O failure, and failNextSetVotedFor is never cleared, so every later setVotedFor() call fails inste...
null
sofastack__sofa-jraft__1245
sofastack/sofa-jraft
1,245
defect
eccaec1d0eb7be212b122a18251dc9a042ecf755
16a6b5fd904305202bd340dea3c67639a19ed023
fix: persist term and votedFor before sending RequestVote RPCs in electSelf()
### Motivation Same class of bug as #1241. `electSelf()` sends RequestVote RPCs to all peers (line 1215), then persists `(term, votedFor)` (line 1218). Raft requires persist-before-send. A crash between the two loses the vote on disk, but remote nodes already saw the higher term. On restart the node can vote for a d...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java index 5d98359ea..674017542 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/NodeImpl....
5
4
1
[{"id": "G0", "claim": "If leadership transfer away from node0 fails, the test silently prints and returns instead of failing or formally skipping, which could hide problems in CI.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test should assert th...
null
sofastack__sofa-jraft__1246
sofastack/sofa-jraft
1,246
defect
eccaec1d0eb7be212b122a18251dc9a042ecf755
747910e185b85604d121f1b7c8a6e1bcaf7f54fc
fix: catch uncaught exception in onApply to prevent apply pipeline stall
### Motivation If `StateMachine.onApply()` throws (NPE, deserialization error, etc.), the exception propagates out of `doApplyTasks()` (line 562), skipping `setLastApplied()` (line 572). `lastAppliedIndex` is never advanced. Next `doCommitted()` retries the same entries, hits the same exception, loops forever. The n...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java index f82268258..4915b8aae 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
6
5
1
[{"id": "G0", "claim": "The new test sets poisonCallbackFired and poisonLatch but never asserts them, so it does not actually validate that remaining task closures are notified with an error status.", "category": "testing", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Thread....
null
sofastack__sofa-jraft__129
sofastack/sofa-jraft
129
defect
0798207bfcc489a1bf0a5f068edf5c6083d59029
f54fd6165b8a8fc49e75989cfc72f128ac4633e1
Feat/sequence step0
### Motivation: Each `getSequence` method call will lead to sequence increase by step, so other client or thread cannot get the latest sequence. In some scenes, users have to store this sequence in addition. ### Modification: Allows `step` parameter can be zero. If step==0, then it is a read-only operation and...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java index 31feec0c7..a4a115c74 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/LogManagerImpl.java +++ b/jraft-core/src/main...
2
2
2
[{"id": "G0", "claim": "Making step==0 a read-only case inside getSequence mixes a read-only operation with one that has side effects; a separate API getLatestSequence should be provided instead.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The reviewe...
null
sofastack__sofa-jraft__131
sofastack/sofa-jraft
131
defect
0798207bfcc489a1bf0a5f068edf5c6083d59029
cc6c096898fd74c932143d37b10d98362f7a2214
feat/close rpc crc
### Motivation: The raft log already has checksum, does not need checksum with bolt rpc any more. ### Modification: Close bolt checksum in AbstractBoltClientService (only jraft use it). Still open checksum when get snapshot file. ### Result: Fixes #130
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/ProtobufMsgFactory.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/ProtobufMsgFactory.java index c58a7c421..2febdc135 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/ProtobufMsgFactory.java +++ b/jraft-core/src/main/java/com/alipa...
1
1
1
[{"id": "G0", "claim": "The BOLT_CRC_SWITCH option hardcoded to false should be moved into rpcOptions so that users at least have a choice over it.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sofastack__sofa-jraft__137
sofastack/sofa-jraft
137
defect
f20970e1fcb0182ffc687ec59a284616427784b3
6b5683a7d7b6d2a40b3c7be788572c026bbcebe8
(bugfix) fix rheakv state machine bug
### Motivation: If rheakv caught a critical error, should halt the state machine to avoid they inconsistencies between different nodes. ### Modification: As above describe. ### Result: Fixes #136
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/IteratorImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/IteratorImpl.java index 0891a90b8..a272b2fc0 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/IteratorImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/co...
3
3
2
[{"id": "G0", "claim": "The pull request needs some unit tests added for the state machine changes.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The String.valueOf call on the added status line is unnecessary because %s formatting already invokes toSt...
null
sofastack__sofa-jraft__144
sofastack/sofa-jraft
144
defect
b06827be94011b9a81fc1776f88da788b5153e77
db35ee6e7dde2853c711a1e374041321a5045a2f
(feat) Refused requests when node is overload, #138
### Motivation: Fix #138 , refused new requests when the raft node is overload. ### Modification: * Adds `DisruptorBuilder` to build disruptor, refactor code. * Use `tryPublishEvent` to replace `publishEvent` in `NodeImpl#apply` and `ReadOnlyServiceImpl#addRequest` to defense overload requests. * Use `Timeou...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java index d78f4764c..19e679ac2 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/FSMCallerImpl.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
2
1
0
[{"id": "G0", "claim": "Fix the misspelling \"Recored\" in the NodeMetrics Javadoc (should be \"Record\").", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The retry loop in appendEntries still does not finally solve the deadlock problem: holding th...
null
sofastack__sofa-jraft__176
sofastack/sofa-jraft
176
defect
0e31fac8d02c52e10c25013ec115b6d350bd405b
29c7eaef523aeeaf83a2e2cf12a21b0edf3856ae
Multi-raft-group setup rebalance without PD
### Motivation: In the case of RheaKV multi raft group, the PD module is currently used to balance leaders between all nodes in the cluster, but there are several problems: The PD relies on the status data carried by the heartbeat of each node to analyze and then send a 'transfer_leader' command, which causes a delay...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java index cdba56ab9..eca2c7862 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java @@ -17,...
17
15
6
[{"id": "G0", "claim": "The rebalance implementation appears to only randomly transfer the leader of a single group, whereas the API is expected to balance the number of leaders on each node across all raft groups in a multi-raft-group setup.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope...
null
sofastack__sofa-jraft__193
sofastack/sofa-jraft
193
defect
f5dca7afddd660744b2a67bbd63ab8d464305b72
30506588fbe8d9cd4f3defd1087e5ff40e3624a2
feat/jraft service loader
### Motivation: Add JRaftServiceLoader, a SPI impl ### Modification: ### Result: Fixes #110
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java index a854e8e84..74fa16812 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jr...
4
2
1
[{"id": "G0", "claim": "The not-found error message would be more idiomatic as a direct \"provider xxx not found\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new JRaftServiceLoader class should have unit tests added.", "category": "test...
null
sofastack__sofa-jraft__198
sofastack/sofa-jraft
198
defect
175a6e39dccf4aa59e70e2ff6cd6338c60dcfa10
5423db84f18464749fa5333a82c588a63509a67e
(feat) CompareAndPut API
### Motivation: Similar to AtomicLong.compareAndSet in Java, the difference is that we do not compare by '==' but compare by bytes. ### Modification: RheaKVStore add compareAndPut API as follows: ``` /** * Atomically sets the value to the given updated value * if the current value equal (compare bytes) t...
diff --git a/jraft-example/src/main/java/com/alipay/sofa/jraft/example/rheakv/CompareAndPutExample.java b/jraft-example/src/main/java/com/alipay/sofa/jraft/example/rheakv/CompareAndPutExample.java new file mode 100644 index 000000000..de0951e97 --- /dev/null +++ b/jraft-example/src/main/java/com/alipay/sofa/jraft/examp...
10
10
3
[{"id": "G0", "claim": "In RocksRawKVStore.batchCompareAndPut, setSuccess is called on the KVState closures before the batch is written to RocksDB, so success is signalled before the data is written; setSuccess must not run before the write.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope"...
null
sofastack__sofa-jraft__201
sofastack/sofa-jraft
201
defect
fcd642b6bb07995f7527eeb258a136e02dc96b56
78dc67c92fe795cdba236fb6f696352c6007fe54
(feat) batch putIfAbsent impl
### Motivation: Provide RocksRawKVStore#batchPutIfAbsent method to improve performance, similar batchPut, batchGetAndPut, etc. ### Modification: RocksRawKVStore override batchPutIfAbsent method similar to batchPut, batchGetAndPut, etc. ### Result: Fixes #199
diff --git a/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/client/DefaultRheaKVStore.java b/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/client/DefaultRheaKVStore.java index aea80eb21..f0784ba29 100644 --- a/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/clien...
3
3
1
[{"id": "G0", "claim": "In batchPutIfAbsent the per-key previous value is never stored into the KVState's done closure (no setData before setSuccess), so callers of the batch operation get a null result where the single-key putIfAbsent path returns one.", "category": "correctness", "verdict": "supported", "priority": "...
null
sofastack__sofa-jraft__258
sofastack/sofa-jraft
258
defect
6f9ebf82509557869f32a375d1f8439d678ad979
a9df1aea27082fadbe148ba272bc0ef7b39839aa
(feat) Enhancement with RepeatedTimer by HashedWheelTimer
### Motivation: `RepeatedTimer` is implementation by `java.util.Timer`, there are some defects: 1. Timer support for scheduling is based on absolute time. 2. If an exception is thrown TimerTask unchecked. 3. Timer single-threaded tasks, task execution time may be lost or inaccurate. We need a better implemen...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java index 5b61c901d..75b0fa074 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
7
5
1
[{"id": "G0", "claim": "The timer field in RepeatedTimer should keep its final modifier, which the pull request dropped when switching to HashedWheelTimer.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The HashedWheelTimer thread factory should...
null
sofastack__sofa-jraft__279
sofastack/sofa-jraft
279
defect
6d572a6845ada53cd14ce0bbfefa480150cc1674
6145776b3781d74c2f496cf5f1da4658f65d87b8
fix timer's thread leak
### Motivation: The `destroy` method should stop the `timer` even if it has not been started yet. Otherwise there will be a resource leak ### Modification: ### Result:
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java index 0b5e9b509..9ac11c7bf 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/RepeatedTimer.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
5
5
1
[{"id": "G0", "claim": "CliServiceTest.testChangePeers NPEs because it reads the leader before the cluster has elected one; add cluster.waitLeader() so the cluster produces a leader first.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The error log m...
null
sofastack__sofa-jraft__302
sofastack/sofa-jraft
302
defect
a503b5b2f75359505d0c4a3bcc5d0e68495d58bf
862de51c776de141a8f5daceb7867215d1c3642c
(feat) contains key api
### Motivation: Provide containsKey(byte[] key) method similar to get(byte[] key) etc. ### Modification: RheaKVStore provide containsKey(byte[] key) method similar to get(byte[] key) etc. ```` CompletableFuture<Boolean> containsKey(final byte[] key); Boolean bContainsKey(final byte[] key); ```` ### Re...
diff --git a/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/DefaultRegionKVService.java b/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/DefaultRegionKVService.java index 0d91f2607..ce8ffcad3 100644 --- a/jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/DefaultRegi...
5
5
2
[{"id": "G0", "claim": "The continuation line of the internalContainsKey signature in DefaultRheaKVStore is not formatted (mis-indented).", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The javadoc @param line of the new containsKey method in RheaKVStore i...
null
sofastack__sofa-jraft__332
sofastack/sofa-jraft
332
defect
9450929940630b84d869e14f3b084ada1a435dbf
07fc032bd2233ec22a461cb02a650cd1260cc229
feat/minor change learners
### Motivation: ### Modification: ### Result:
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java index 898d0c253..ca8461dc2 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java @@ -79,...
2
1
0
[{"id": "G0", "claim": "The maintainer requires the learners fields to keep no-duplicates and insertion-order semantics, which List<PeerId> does not guarantee the way LinkedHashSet did.", "category": "design", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "In resetLearners the re...
null
sofastack__sofa-jraft__355
sofastack/sofa-jraft
355
defect
e601fe4cbbaadaf021e26a4e4989b93fbb0d1d0b
05eb8a5e64a0e7e256f0dec65e97f2af9ff6d9ee
About NullPointerException in Recycles
### Motivation: issue : https://github.com/sofastack/sofa-jraft/issues/353 ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR.
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/Recyclers.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/Recyclers.java index 690391eef..4b994f415 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/util/Recyclers.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/util/Recycl...
5
4
2
[{"id": "G0", "claim": "The pull request should add some unit tests for its change to Recyclers.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The new test testRecycleMultipleAtDifferentThread fails: when many threads recycle the same object concurrent...
null
sofastack__sofa-jraft__357
sofastack/sofa-jraft
357
defect
b90f93a39c871e6620a63ebc3a474dabb7a14c1a
8e54c7b4dab10d0ee4836204ce2ce5e1cd44f919
fix elect priority
### Motivation: When leader stepdown, select (maxIndex, maxPriority) as next candidate ### Modification: ### Result:
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/ReplicatorGroupImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/ReplicatorGroupImpl.java index 6bfb87edd..42d99edd3 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/ReplicatorGroupImpl.java +++ b/jraft-core/src/main/java/com...
1
1
1
[{"id": "G0", "claim": "The new condition `nextPriority > priority` may change the original semantics: without priority election enabled the candidate would no longer be the peer with the largest nextIndex, so it should probably be `nextPriority >= priority`.", "category": "correctness", "verdict": "supported", "priori...
null
sofastack__sofa-jraft__365
sofastack/sofa-jraft
365
defect
f8d84b6ef1853af0a3fdd2eb56f46e19df636158
231aa72f1b8faaf1b46b0296a1bc69fb671c9675
(feat)Snapshot improve.
### Motivation: Snapshot improve to add a option variable dist for judging the distance between state machine lastAppliedIndex and lastSnapshotIndex. ### Modification: (1)NodeOptions.java. (2)SnapshotExecutorImpl.java ### Result: Fixes #276 If there is no issue then describe the changes introduced ...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/option/NodeOptions.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/option/NodeOptions.java index 474b11efb..e60f9bce1 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/option/NodeOptions.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft...
4
4
1
[{"id": "G0", "claim": "The comment explaining the new distance-based snapshot trigger is wrong about the semantics - the distance check is an AND relation with snapshotIntervalSecs - and the explanation should be more detailed.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduc...
null
sofastack__sofa-jraft__465
sofastack/sofa-jraft
465
defect
0d8c96f881c0893e115a236a5e8d2b32a29b8382
c700ab1084a9a8c02083a846565c21d5837aa046
Fix/some fix
### Motivation: 1. fix maybe a recycle memory leak bug 2. add read-index timeout scanner to fail faster. ### Modification: ### Result:
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/closure/ReadIndexClosure.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/closure/ReadIndexClosure.java index cd715ef69..8a7dba16b 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/closure/ReadIndexClosure.java +++ b/jraft-core/src/main/java/com...
7
2
0
[{"id": "G0", "claim": "The read-index callback must not take long to execute, or must be handled asynchronously, since the new timeout task invokes it directly.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "recyclable should be recycled as soon as...
null
sofastack__sofa-jraft__523
sofastack/sofa-jraft
523
defect
c0daf8dbad895d349c4b736f5d92e279f962090b
fa4c7b160206619182df653827e8517ddc459012
(fix) revisiting segment log storage and fix some corner cases
修复 segment log storage 一些 bug 和 corner case 的处理,包括: * `AbortFile#touch` 无效 * 在 recover 过程中,遇到历史日志数据损坏(可能磁盘数据损坏等意外情况)的情况,应当跳出 recover,终止节点启动。 * 针对 truncate prefix/suffix 处理的边缘情况,做了一些特殊处理,确保 segment 及时被删除。
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/log/AbortFile.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/log/AbortFile.java index a39db9c6b..c3ccf1797 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/log/AbortFile.java +++ b/jraft-core/src/main/java/com/alipay/s...
4
2
0
[{"id": "G0", "claim": "The FileWriter local variable in AbortFile.writeDate should be declared final.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The createNewFile call in AbortFile.create may throw an exception and that should be handled.",...
null
sofastack__sofa-jraft__527
sofastack/sofa-jraft
527
defect
5129ee8852a010550d7fdf2e172974f950243efd
bcd28829325b7087722985adb351d30e55464fb3
fix #526
fix #526
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java index 0fce9d00f..6851f1616 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId....
3
3
1
[{"id": "G0", "claim": "The new isIPv6's exception handling should catch all exceptions rather than only UnknownHostException (getByName/getAddress could theoretically return null) and wrap failures in an IllegalArgumentException instead of silently returning false, so callers can troubleshoot.", "category": "correctne...
null
sofastack__sofa-jraft__528
sofastack/sofa-jraft
528
defect
5129ee8852a010550d7fdf2e172974f950243efd
9ffc14fc634c525ff95cf1a4ecfbcbbd106f9ad4
(fix) peer context should not be shared between connections, see #461
### Motivation: Don't share peer contexts between connections. The peer context may be destroyed which is not expected, see #461 . ### Modification: Change the peerRequestContexts type in `AppendEntriesRequestProcessor` from `Map<groupId, <peerId, context>>` to `Map<groupId, <PeerPair, context>>`. The `Peer...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/Connection.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/Connection.java index 74d9bdbf2..2aec6539c 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/Connection.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/rpc/Connect...
3
3
0
[{"id": "G0", "claim": "The javadoc wording \"if the key's item is not exists\" is grammatically wrong and should read \"if the key's item doesn't exist\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manual get-and-create logic in pairOf co...
null
sofastack__sofa-jraft__598
sofastack/sofa-jraft
598
defect
3979a757b47fd1ef25dbfba268d2797d9ccba3c7
fcc78e651e8c7d66447746f8f133eaaf03a4337e
feature: add learner to follower realize
### Motivation: ### Modification: ### Result: Fixes #560 learner to follower realize
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java index ca8461dc2..bf2f6d08d 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/CliService.java @@ -189...
1
1
1
[{"id": "G0", "claim": "Converting a learner to a follower as two separate configuration changes (removeLearners then addPeer) may not be optimal — two raft logs is inefficient and, if the first step succeeds and the second fails, how to retry is unclear — so the conversion should be completed with a single update-conf...
null
sofastack__sofa-jraft__603
sofastack/sofa-jraft
603
defect
3979a757b47fd1ef25dbfba268d2797d9ccba3c7
036eb3ca1cd0e2d434951b9874b3d1f36dbbba62
add parallel compress and deCompresss feature
# 并行压缩项目报告 ## 1.引言 ### 1.1 任务内容 ​ 在rheakv启动过程中,因snapshot压缩文件较大,导致长时间停留在解压缩的过程,严重的影响了系统的启动速度。同样,在安装snapshot的过程中,单线程压缩大文件也会影响性能. ​ 为此,需要引入并行解压缩和并行压缩,来优化关于snapshot的压缩和解压缩的速度 ### 1.2 参考资料 - [apache common-compress](https://commons.apache.org/proper/commons-compress/apidocs/org/apache/commons/comp...
diff --git a/jraft-example/src/main/java/com/alipay/sofa/jraft/example/rheakv/Server1.java b/jraft-example/src/main/java/com/alipay/sofa/jraft/example/rheakv/Server1.java index d007625b9..45287f3ed 100644 --- a/jraft-example/src/main/java/com/alipay/sofa/jraft/example/rheakv/Server1.java +++ b/jraft-example/src/main/ja...
19
19
4
[{"id": "G0", "claim": "The new thread-count option defaults should use the project's Utils.CPUS helper instead of calling Runtime.getRuntime().availableProcessors() directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The field compressCore...
null
sofastack__sofa-jraft__606
sofastack/sofa-jraft
606
defect
e6d9a05cbe6cd875ed8212b05eee5e73a16fd73a
bd7144badc8fcff4d9ac9507dd650204018b1fda
fix can't retry InstallSnapshot problem( #605 )
### Motivation: Fixed the problem that all InstallSnapshot sessions will be blocked when a new InstallSnapshot request arrives, see #605 ### Result: Fixes #605 .
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/snapshot/SnapshotExecutorImpl.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/snapshot/SnapshotExecutorImpl.java index de0b60949..d621bafbe 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/snapshot/SnapshotExecutorImpl....
1
1
0
[{"id": "G0", "claim": "The comment the PR added should say `is` (the installing snapshot) rather than `ds`, since `m` was renamed from `is` and `|is| is older` describes the installing snapshot being older.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-jraft__690
sofastack/sofa-jraft
690
defect
c72a9b6560685991b9d5a1165ad6a791728b47a2
e9a4037f8da643a6d72d8d8c33dbd5d7f520be99
fix: grpc conn refresh
### Motivation: when the grpc connection failures too many times(default: 3), reset the connect backoff and reconnect immediately ### Result: Fixes #683 If there is no issue then describe the changes introduced by this PR.
diff --git a/jraft-core/src/test/resources/log4j2.xml b/jraft-core/src/test/resources/log4j2.xml index 0d4541357..d53e7655a 100644 --- a/jraft-core/src/test/resources/log4j2.xml +++ b/jraft-core/src/test/resources/log4j2.xml @@ -3,12 +3,12 @@ <Appenders> <Console name="Console" target="SYSTEM_OUT"> - ...
1
1
1
[{"id": "G0", "claim": "A ConnectivityState listener should clear the per-endpoint transientFailures count so that a channel that reconnects within the failure threshold starts its count over (horizonzy first suggested listening on CONNECTING, then corrected that it should be READY).", "category": "correctness", "verdi...
null
sofastack__sofa-jraft__752
sofastack/sofa-jraft
752
defect
4f027979bffb6fb329934f97647ffee44cb76f96
305a2ca3819617361ec88396c8e8bdef282317a1
实现基于BDB的日志存储
### Motivation: 对于国产化平台,使用RocksDB存储日志,需要编译各个环境的依赖。 因此采用基于java实现的BDB存储日志,对于国产化平台的适配更方便、容易 ### Modification: 1、基于BDB 实现了 LogStorage 接口 2、提供BDBLogStorageJRaftServiceFactory 重写 createLogStorage 3、通过单元测试 参考了RocksDBLogStorage ### Result: 只需要在启动前设置ServiceFactory即可,如: nodeOptions.setServiceFactory(new BDBLogSt...
diff --git a/jraft-extension/bdb-log-storage-impl/pom.xml b/jraft-extension/bdb-log-storage-impl/pom.xml new file mode 100644 index 000000000..f81e48ccb --- /dev/null +++ b/jraft-extension/bdb-log-storage-impl/pom.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/...
4
4
2
[{"id": "G0", "claim": "The commented-out openStatistics code should be deleted.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The commented-out truncatePrefixInBackground(0L, this.firstLogIndex) call should run during load, so a truncated pref...
null
sofastack__sofa-jraft__772
sofastack/sofa-jraft
772
defect
e9ae4e477576fd98d9dd539faf7470b6b938e98b
4710a9c90ed1ac6bdab6506a9e0adbdcef5c5dea
optimize: support jdk9+ compile code
### Motivation: 使用jdk9及以上版本编译源码后进行引入,再默认序列化下,会出现以下异常 java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer) 需要将ByteBuffer转换为Buffer再调用相关函数 ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then descr...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java index 7b4fa34fd..c76fd481f 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Rep...
1
1
0
[{"id": "G0", "claim": "The import order in FileService.java was unintentionally adjusted (probably by the author's IDE configuration) and should keep the original ordering.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sofastack__sofa-jraft__783
sofastack/sofa-jraft
783
defect
bc4cfb3397bd5a610879d9b070ec158060d363b5
07772acf0b9bcec794baf2a9287e991fff2b4bfc
(fix) refactor ThreadId and fix #781
A minor change to fix #781
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java index 7b4fa34fd..1dd9b1224 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Rep...
1
1
1
[{"id": "G0", "claim": "The rewritten setError re-acquires ThreadId's non-reentrant lock while the caller (onHeartbeatReturned's catch path) may already hold it, so a timeout fired synchronously from startHeartbeatTimer can deadlock; the reviewer suggests using a reentrant lock or avoiding the synchronous timeout().", ...
null
sofastack__sofa-jraft__80
sofastack/sofa-jraft
80
defect
688a7ece8d83f2b4687d26aac12e769c43aee2a8
9dd1c289584a13d91e7aef9c5ffcd98970ecebda
fixbug/install snapshot bug
### Motivation: Snapshot 过大引起的安装失败 bug,会影响新增节点的加入 ### Modification: 1. GetFileResponse#eof 字段必须设置 2. 新增 rpcInstallSnapshotTimeout 配置项,默认 5 min,避免 snapshot 分段传输时间过长导致的不断超时重试 ### Result: Fixes #79
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/FileService.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/FileService.java index 753761aef..bf13c7c99 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/FileService.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jr...
3
2
0
[{"id": "G0", "claim": "Jepsen validation should also take snapshots into account.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The new large-file test is not sufficient and is unit-level: the pull request should also simulate the real scenario of a...
null
sofastack__sofa-jraft__867
sofastack/sofa-jraft
867
defect
cebea9c95b3d6b01601ccaa6a6147a5abc62b677
8eba51902b2847452426bf51f6daed59dc12105c
ReadOnlyOption 支持请求级别
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes int...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/Node.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/Node.java index 4b5967257..d309c2b7e 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/Node.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/Node.java @@ -31,6 +31,7 @@ import com.a...
3
3
1
[{"id": "G0", "claim": "The new readOnlyOptions field in ReadIndexRequest should use an enum type instead of a plain string.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The rename of the request builder variable (rb to readLogRequestBuilder) is unnece...
null
sofastack__sofa-jraft__907
sofastack/sofa-jraft
907
defect
67621e5497cce988973906cc5f2b14df51d6bae8
cad7fb32fd7d49481f4a9441415041c95f6574be
Differentiated configuration for RocksDB
### Motivation: #903 ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR.
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/RocksDBLogStorage.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/RocksDBLogStorage.java index 1c63e5292..cdf1b0b22 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/storage/impl/RocksDBLogStorage.java +++ b/jraft-core...
2
2
1
[{"id": "G0", "claim": "The change breaks the existing registerXXXX(final Class<?> cls, final XXXOptions opts) API; the old single-class methods should be kept and configure all raft groups' storage options by default.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
sofastack__sofa-jraft__933
sofastack/sofa-jraft
933
defect
9ac60dd7c0e117b66e44a7d916391838ea91d209
264cc9482dce0544a40eeb7844756ac4e2f0991b
Snapshot temporary directory support configurable
### Motivation: #932 ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR.
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java index 84a78fca2..d393f017b 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/JRaftServiceFactory.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jr...
2
2
0
[{"id": "G0", "claim": "The LOG.info reporting the snapshot temp path should be moved outside the if branch, since that info may be useful for users.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instance variables should always be prefixed wit...
null
sofastack__sofa-jraft__962
sofastack/sofa-jraft
962
defect
ae89c78fa3207b23369931375f07eacfa6754ff8
214ec937054e2231ee0efcd365a4a63ccf54614f
feat(iterator):Auto commit mode for applying log iterator
### Motivation: Auto commit mode for applying log iterator ### Modification: [issue link is here.](https://github.com/sofastack/sofa-jraft/issues/957) ### Result:
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/Iterator.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/Iterator.java index ad61dbc19..acfd9d062 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/Iterator.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/Iterator.java @@ -28,6 +28,12...
4
3
1
[{"id": "G0", "claim": "The auto-commit flag should default to true, otherwise there may be backward compatibility problems.", "category": "correctness", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The flag name autoCommit is misleading and should be renamed to autoCommitPerLo...
null
sofastack__sofa-jraft__969
sofastack/sofa-jraft
969
defect
efeb7709b0ac557a9fb3e037a760138f1d1c9514
9292c37aef7296f2fe3db28d49d813fa1eff3861
fix: don't block heartbeat response when fsm is busy
### Motivation: Don't block processing heartbeat requests when FSM is busy. ### Modification: When FSM is busy, then don't update the `lastCommitIndex` at that time. It's fine because the heartbeat requests and append entries requests will keep attaching the latest commit index. ### Result: Fixes #845 ...
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/FSMCaller.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/FSMCaller.java index b6824118c..a6ebc6b02 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/FSMCaller.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/FSMCaller.java @@ -65,6 +6...
1
1
0
[{"id": "G0", "claim": "The requestContext line the pull request adds in handleReadIndex is indented with a stray tab instead of spaces, so it should be reformatted to match the file's indentation.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
sofastack__sofa-jraft__997
sofastack/sofa-jraft
997
defect
3d989e3e7ff408717fcd6cf6d8a47d1789b3e5fa
780cdfa2784f79417124973257542464632ccfef
add group id for replicator logs
在 Replicator 的日志中增加 group id 信息,方便定位多Raft group 下的问题。
diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java index b40c323a3..17bb2d587 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Replicator.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/core/Rep...
4
4
0
[{"id": "G0", "claim": "Log statements that print the whole Replicator object (this/r, whose toString output is too complicated) should print just (peerId, groupId, replicatorType) instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The wait...
null
sofastack__sofa-registry__251
sofastack/sofa-registry
251
defect
746ab56f89cea16e6a7232584139f1c9f901dd18
b59136112562054ca5e9b1f63e9d5e40d187b80f
metadata register async
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes in...
diff --git a/client/all/pom.xml b/client/all/pom.xml index 1f36c6563..4e4da53df 100644 --- a/client/all/pom.xml +++ b/client/all/pom.xml @@ -6,7 +6,7 @@ <groupId>com.alipay.sofa</groupId> <artifactId>registry-client-all</artifactId> - <version>6.1.6-SNAPSHOT</version> + <version>6.1.7-SNAPSHOT</versio...
9
5
1
[{"id": "G0", "claim": "dzdx questions the new AtomicMap class: why not use AtomicReference + ConcurrentHashMap instead of a custom class.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since put takes the write lock, the backing map need not be a Concurre...
null
sofastack__sofa-registry__285
sofastack/sofa-registry
285
defect
b4c867f0e173cc40849c22c807462f5193b6b821
2ffbb15454b8edd623739b9545aba045619c713a
Refactor data node service
fix : * https://github.com/sofastack/sofa-registry/issues/283 * https://github.com/sofastack/sofa-registry/issues/284
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/dataserver/ClientOffPublisher.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/dataserver/ClientOffPublisher.java index ecdf971b6..bde0da550 100644 --- a/server/common/model/src/main/java/com/alipay/sofa/r...
2
1
0
[{"id": "G0", "claim": "BufferedDataWritingEngine could be a singleton Spring bean instead of being constructed and passed in via startup/constructor parameters.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Use ConcurrentUtils.createDaemonThread to creat...
null
sofastack__sofa-registry__302
sofastack/sofa-registry
302
defect
1a8dbabca44955538cad7b949936630e5f5b2c22
52f5e238b468066bb2eab2aa1e3c0693dc54486a
SessionRegistryStrategy->ClientRegistrationHook
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes in...
diff --git a/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/dataserver/ClientOffPublisher.java b/server/common/model/src/main/java/com/alipay/sofa/registry/common/model/dataserver/ClientOffPublisher.java index bde0da550..012fb08e4 100644 --- a/server/common/model/src/main/java/com/alipay/sofa/r...
2
1
0
[{"id": "G0", "claim": "The reviewer asks whether the negated worker.offer() rejection line is a bug fix carried over from a previous PR and whether that changed behaviour is covered by unit tests.", "category": "testing", "verdict": "opposed", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "DefaultCli...
null
sofastack__sofa-registry__337
sofastack/sofa-registry
337
defect
79ffc04ec7b9b63762013e16756455192482fea1
3b8572f9c68ac7357d274c604c40725c111b210c
Release/v6.40
### Motivation: 1. fix app revision not exist 2. Solve the problem that the session starts slowly after the multi-Idc feature is turned on 3. Reduce the impact of session operation and maintenance on app traffic off 4. fix Issue of high CPU usage by the meta leader ### Result: #335 #336 #339 #340
diff --git a/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/metadata/MetadataCacheRegistry.java b/server/server/session/src/main/java/com/alipay/sofa/registry/server/session/metadata/MetadataCacheRegistry.java index 9b1258cb9..924b5b28c 100644 --- a/server/server/session/src/main/java/com/a...
2
2
1
[{"id": "G0", "claim": "Changing RevisionNotExistException to extend Error is dangerous because an uncaught Error can only be caught via catch(Throwable), so the revision-not-found condition should be raised as a (unchecked) exception that callers can actually catch.", "category": "design", "verdict": "supported", "pri...
null
sofastack__sofa-rpc__100
sofastack/sofa-rpc
100
defect
855ef181ba01bca02204ca448b0ca2a63313a321
26c594566ea75354fc3226719b869921f4a340fa
Support data of configs and overrides from zookeeper registry.
### Motivation: Zookeeper配置节点观察者未实现具体动态调整Provider/Consumer自定义配置逻辑 ### Modification: Zookeeper配置节点观察者实现思路是Zookeeper注册中心修改订阅配置节点subscribeConfig方法,监听配置节点下 子节点增加、子节点删除、子节点Data修改事件的实现即完善ZookeeperConfigObserver配置节点观察者实现,因为该配置节点观察者内部有configListenerMap绑定接口配置和配置监听者,所以实现updateConfig,updateConfigAll,removeConfig三个方法依赖子节点Data,之...
diff --git a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperConfigObserver.java b/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperConfigObserver.java index eb32c356a..8036feee8 100644 --- a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/...
4
4
3
[{"id": "G0", "claim": "On removal the convert code falls back to RpcConfigs.getStringValue(property), but these keys (timeout, weight and other dynamic attrs) live in ProviderInfoAttrs and are absent from the rpc-config.json defaults, so the value returned on removal would be wrong.", "category": "correctness", "verdi...
null
sofastack__sofa-rpc__1044
sofastack/sofa-rpc
1,044
defect
4f824e2b2897ce5b6cbc8944219e0c96b56ebd02
9a3247eccfaf4b3c0537455ebd40e02ff6812ec8
Retry logic lose exeception bugfix
### Motivation: Fix retry leads to lose exeception bug and sometime first time to call exeception bug ### Result: Fixes [issue 980](https://github.com/sofastack/sofa-rpc/issues/980) [issue 984](https://github.com/sofastack/sofa-rpc/issues/984)
diff --git a/codec/codec-sofa-hessian/src/test/java/com/alipay/sofa/rpc/codec/sofahessian/SofaHessianSerializerTest.java b/codec/codec-sofa-hessian/src/test/java/com/alipay/sofa/rpc/codec/sofahessian/SofaHessianSerializerTest.java index f9013ad51..07a5a1604 100644 --- a/codec/codec-sofa-hessian/src/test/java/com/alipay...
2
2
1
[{"id": "G0", "claim": "The encodeLocalDateTime test added to SofaHessianSerializerTest is not associated with any other code in the pull request and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request should add t...
null
sofastack__sofa-rpc__1063
sofastack/sofa-rpc
1,063
defect
d79898aae8f1f88f5b99dda65ab97f641dcdd538
2b9f338a576b393a1f3d4e42da93e06af41c3adc
Timeout priority bugfix
Get provider timeout from dynamic and than static attr.
diff --git a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AbstractCluster.java b/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AbstractCluster.java index 0b372e45d..23a8b3b9d 100644 --- a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AbstractCluster.java +++ b/core-impl/client/src/m...
2
2
0
[{"id": "G0", "claim": "The private parseInt helper extraction is unnecessary, and returning -1 on parse errors should not be its common logic.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "StringUtils.isNumeric should be used to validate the string bef...
null
sofastack__sofa-rpc__1147
sofastack/sofa-rpc
1,147
defect
a38e4b36cc6aea9d090f49a7ef0586c00f9bb783
034cef29b8e038384ccef45d8d962a3346095e4b
Registry polaris
### Motivation: add a new registry component polaris , the project website : https://github.com/polarismesh/polaris , https://polarismesh.cn/#/ related issue: polarismesh/polaris#163 ### Modification: add a new registry component polaris, the code logic is similar to consul registry. ### Result: Fixes ...
diff --git a/all/pom.xml b/all/pom.xml index 58786ccb7..c9833babc 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -232,6 +232,11 @@ <artifactId>sofa-rpc-registry-sofa</artifactId> <version>${project.version}</version> </dependency> + <dependency> + <groupId>com.alipay....
13
9
3
[{"id": "G0", "claim": "The @author javadoc tag in the new example classes still credits GengZhang and should be changed to the PR author's own name.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A unit test should be added for the new polaris re...
null
sofastack__sofa-rpc__1193
sofastack/sofa-rpc
1,193
defect
2f23db98c51933a509757768abf9ea868f34310a
db6c276339306c3e0c2685947483fa339b64439b
fix: generic interface deserialize error by json
### Motivation: in the case: 1. a sofa service implement a generic interface, like below: ``` public interface MyService<T, R> { R hello (T t); } ``` 3. client and server use `json` for serialize/deserialize then, when the server receice a request and try to deserialize it to `T` will fail, because `...
diff --git a/codec/codec-jackson/src/main/java/com/alipay/sofa/rpc/codec/jackson/JacksonHelper.java b/codec/codec-jackson/src/main/java/com/alipay/sofa/rpc/codec/jackson/JacksonHelper.java index 3e7de820f..b764a31e9 100644 --- a/codec/codec-jackson/src/main/java/com/alipay/sofa/rpc/codec/jackson/JacksonHelper.java +++ ...
7
4
1
[{"id": "G0", "claim": "The static genericServiceMap is a plain HashMap reachable through a public static method, so concurrent access cannot be ruled out and the reviewer suggests changing it to a concurrent map.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1"...
null
sofastack__sofa-rpc__1296
sofastack/sofa-rpc
1,296
defect
af35a3270925daf39bb8e9eaa29b57713d69331c
3a0467bcd92da18f534c0cf2677a43d8f69e1f82
Custom serializer register
### Motivation: Currently, the custom serializer is registered by static code block. And once it registered, it could not be modified. When there are several classes that register custom serializer, the sequence, dependents on sequence of class loading, is unpredictable, and unmodifiable. Thus, there's no way...
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java index 89a4be4f2..43830455f 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions....
6
5
0
[{"id": "G0", "claim": "The two register methods have the same body, so maybe the detail logic should be put in only one of them.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Since SofaRpcSerializationRegister is an extension, RPC_SERIALIZATIO...
null
sofastack__sofa-rpc__1306
sofastack/sofa-rpc
1,306
defect
af35a3270925daf39bb8e9eaa29b57713d69331c
dd17330f29892369a72bccba0847e8a4b4a07cb5
Fix#1254#1305 bug on JSON serialization and deserialization
### Motivation: Fix#1254#1305 bug on JSON serialization and deserialization ### Modification: 1. In BeanSerializer.serialize(), create a fresh Map when the "bean" is a Map instance, in order to prevent any unpredictable changes due to references 2. In BeanSerializer.serialize(), use class.getName() rather tha...
diff --git a/core/common/src/main/java/com/alipay/sofa/rpc/common/json/BeanSerializer.java b/core/common/src/main/java/com/alipay/sofa/rpc/common/json/BeanSerializer.java index 85cec8437..8d24afbd3 100644 --- a/core/common/src/main/java/com/alipay/sofa/rpc/common/json/BeanSerializer.java +++ b/core/common/src/main/java...
3
2
0
[{"id": "G0", "claim": "The pull request's added code should be reformatted with `mvn clean compile` before pushing.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new test method names should follow the naming convention (e.g. testBeanWithM...
null
sofastack__sofa-rpc__1399
sofastack/sofa-rpc
1,399
defect
70f16f3c550aeb40e9c8ac8e63870ad9c8c4992b
8deb606f2b4d4405a9cfb836b65e525229fde855
Support bzip2 and gzip compress
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Enhanced data compression efficiency in RPC communication by introducing `Bzip2` and `Gzip` compression options. - **Tests** - Ensured the reliability of `Bzip2` and `Gzip` compression function...
diff --git a/bom/pom.xml b/bom/pom.xml index d43a6183d..c455e7a09 100644 --- a/bom/pom.xml +++ b/bom/pom.xml @@ -62,6 +62,7 @@ <module.deploy.skip>true</module.deploy.skip> <!-- Fabric8 for Kubernetes --> <fabric8_kubernetes_version>6.9.2</fabric8_kubernetes_version> + <commons_compres...
4
4
1
[{"id": "G0", "claim": "The package name for Bzip2RpcCompressor in the Compressor service registration appears misspelled as 'biz2' and should likely be corrected to 'bzip2' if necessary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The assert...
null
sofastack__sofa-rpc__1488
sofastack/sofa-rpc
1,488
defect
9b54014d09246dff37cae70f3bad2cfecd4bce76
5fa45b7920fdec018c19d16978fac70d9e6df1f1
support stream event log
Support stream rpc event log and enhance tracer. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced detailed event tracing and logging for client and server streaming events, including new event types and standardized event tags. - ...
diff --git a/all/pom.xml b/all/pom.xml index 59845860d..bd93ff4cc 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -62,7 +62,7 @@ <hessian.version>3.5.5</hessian.version> <resteasy.version>3.6.3.Final</resteasy.version> <bolt.version>1.6.10</bolt.version> - <tracer.version>3.1.6</tracer.v...
19
3
3
[{"id": "G0", "claim": "The new server-side switch sets the invoke type on sofaRequest but never propagates it into the HEAD_INVOKE_TYPE request prop or headers, so downstream filters/interceptors relying on that prop may treat every request as sync and record inconsistent tracing and metric data.", "category": "correc...
null
sofastack__sofa-rpc__1521
sofastack/sofa-rpc
1,521
defect
a0736848678a52d419993ff30fb7826174fda803
39f1dde219a92628ba741ed455d9044f812ad029
fix triple shared channel remove when rpc sendMsg issue
fix shared channel remove when rpc sendMag issue <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved channel lifecycle: stronger reference-counting and safer shutdown with timeout and interruption handling. * **Refactor** * Adjusted synch...
diff --git a/remoting/remoting-triple/src/main/java/com/alipay/sofa/rpc/transport/triple/ReferenceCountManagedChannel.java b/remoting/remoting-triple/src/main/java/com/alipay/sofa/rpc/transport/triple/ReferenceCountManagedChannel.java index 73ec416bf..1ab859022 100644 --- a/remoting/remoting-triple/src/main/java/com/al...
4
1
1
[{"id": "G0", "claim": "The catch of InterruptedException in ReferenceCountManagedChannel.shutdown() swallows the interrupt, so upstream code keeps running as if nothing happened; restore the thread's interrupt status after logging so callers can react.", "category": "correctness", "verdict": "uncertain", "priority": "...
null
sofastack__sofa-rpc__174
sofastack/sofa-rpc
174
defect
3e63253d57a703abf98da0a26be6f430f52d0609
757a03df23f788a982e0e863f1f04f31459e7c51
Fix zookeeper registry get wrong provider list. (#166)
### Result: Fixes #166
diff --git a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/SingleGroupAddressHolder.java b/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/SingleGroupAddressHolder.java index ab4c575d9..8211189bc 100644 --- a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/SingleGroupAddressHolder.java +...
1
1
0
[{"id": "G0", "claim": "The delayGet helper duplicated in BaseZkTest should be removed and call sites should use the shared TestUtils.delayGet() from #180 instead.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-rpc__179
sofastack/sofa-rpc
179
defect
576847d9959a34991593cae950d3e824e1a56b4f
69ef79204c24c7725ccff1811ae7fd78a6981419
Add support for http2 prior knowledge mode. (#164)
Fixes #164 Add some code for http transport to support http2 Prior-Knowledge mode connection.
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java index 06213780b..8812673b5 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcOptions....
5
5
0
[{"id": "G0", "claim": "The new config key/constant `transport.h2c.use_prior_knowledge` (TRANSPORT_H2C_USE_PRIOR_KNOWLEDGE) should be renamed to `transport.client.h2c.usePriorKnowledge`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The default value of...
null
sofastack__sofa-rpc__184
sofastack/sofa-rpc
184
defect
d47a8511d04c717945b3dd34e030529da08a38f4
5e88fe46a3dd198c6fa9854a15e91777498edc4c
Support elastic connection holder.
### Motivation: - Support elastic connection holder like connection pool of datasource - complete #56 ### Modification: new ElaticConnectionHolder, extends AllConnectionHolder and the addNode method is overridden, control the number of long synchronous connections by getting the value of the ``CONSUMER...
diff --git a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AllConnectConnectionHolder.java b/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AllConnectConnectionHolder.java index 40a0bcad8..354c58ee1 100644 --- a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/AllConnectConnectionHolder....
15
15
2
[{"id": "G0", "claim": "The ZooKeeper-requiring test case should be moved to the test-integration-3rd module and extend com.alipay.sofa.rpc.base.BaseZkTest.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The class name (and extension naming) misspells E...
null
sofastack__sofa-rpc__225
sofastack/sofa-rpc
225
defect
b2a69dbaca7e093c17da010b788e41a9694e0a70
84836967c211fd391c6509550bd0093cfd46cd7a
Support register the provider info with custom parameter to ZookeeperRegistry.
### Motivation: convert custom parameters to URL. ### Modification: Describe the idea and modifications you've done. ### Result: User can specify some URL parameters to publish to registry
diff --git a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistryHelper.java b/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/registry/zk/ZookeeperRegistryHelper.java index ba045ea72..ed899a071 100644 --- a/extension-impl/registry-zk/src/main/java/com/alipay/sofa/rpc/...
1
1
0
[{"id": "G0", "claim": "In convertMap2Pair, replace the null-only guard returning \"\" with CommonUtils.isEmpty(map) returning StringUtils.EMPTY, and pre-size the StringBuilder to 128.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-rpc__279
sofastack/sofa-rpc
279
defect
f04d92802cd0b2ce56cb7dbeed05568124192a1b
505c26a4afa49645303075035551a8cdee14d3ad
Optimize the log of extension loader.
### Motivation: FIX https://github.com/alipay/sofa-rpc/issues/278 ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR.
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/codec/CompressorFactory.java b/core/api/src/main/java/com/alipay/sofa/rpc/codec/CompressorFactory.java index 9f8bd7a3a..a17d33cb1 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/codec/CompressorFactory.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/...
3
3
0
[{"id": "G0", "claim": "Use Assert.fail() instead of Assert.assertTrue(false) to fail the getCompressorNotExist test when no exception is thrown.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Remove the unnecessary code in the getCompressorNotExist tes...
null
sofastack__sofa-rpc__42
sofastack/sofa-rpc
42
defect
c3ccd16af605b7fc378bce926c2035e250cdeb8c
ea896fa9d96c33ac41320508c04be8840ddcb532
Support warmup weight of provider.
fix [issue#43](https://github.com/alipay/sofa-rpc/issues/43)
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java b/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java index 8722280ea..ffce2a0be 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/client/ProviderInfo.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/client/Provi...
7
7
1
[{"id": "G0", "claim": "Change all the comments to English, and add an issue describing the bug in detail.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "The ProviderInfo class javadoc should say that ProviderInfo contains all the information of...
null
sofastack__sofa-rpc__422
sofastack/sofa-rpc
422
defect
5e0787b8da382ebd07633210693165657065ed36
da385aedd0d6a9b54762ce6983871bb96bf67718
Register CorsFilter by default and support custom allowed origins.
### Motivation: when start rest server,we register a custom cors filter . ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #378 If there is no issue then describe the changes introduced by this PR.
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConstants.java b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConstants.java index 89732f6de..921dd6adf 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcConstants.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/common/RpcCo...
3
1
0
[{"id": "G0", "claim": "If the expectation is that the CorsFilter is only added when ALLOWED_ORIGINS is configured, then the filter is also registered in the scenario where crossDomainStr is empty.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "JAXRSP...
null
sofastack__sofa-rpc__505
sofastack/sofa-rpc
505
defect
c07c6de120b4d9db854f1692cbd1f95df932385d
6bf2822725a44478533c26eb86a7586ce2606b81
support rest server for lookout
### Motivation: only a demo for support , please give some advice for this. the detail of code will be improved later. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes introduced by this PR.
diff --git a/extension-impl/remoting-resteasy/src/main/java/com/alipay/sofa/rpc/lookout/RestLookoutAdapter.java b/extension-impl/remoting-resteasy/src/main/java/com/alipay/sofa/rpc/lookout/RestLookoutAdapter.java new file mode 100644 index 000000000..61a4ed0d1 --- /dev/null +++ b/extension-impl/remoting-resteasy/src/ma...
1
1
1
[{"id": "G0", "claim": "The pull request should add test cases for the new lookout/rest server metrics feature.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sofastack__sofa-rpc__509
sofastack/sofa-rpc
509
defect
d5a5476b7a1331e71e810f5613273a044da56a4f
37c63953ee08d74dfba68f2216dae20af5960264
support reuse and do not reuse connection for bolt
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes in...
diff --git a/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/transport/bolt/AloneBoltClientConnectionManager.java b/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/transport/bolt/AloneBoltClientConnectionManager.java new file mode 100644 index 000000000..f2eda64c6 --- /dev/null +++ b/exten...
5
5
1
[{"id": "G0", "claim": "The @author javadoc tag of the new AloneBoltClientConnectionManager should be changed to leizhiyuan instead of GengZhang.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The call sites in BoltClientTransport that directly ca...
null
sofastack__sofa-rpc__654
sofastack/sofa-rpc
654
defect
d5172c563f5f36618d9b8100c709464fe8e0b695
7fbd67cb291a932cec2c2696fc162d2f42f766a7
MapSerializer support empty
Fixes #652
diff --git a/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/codec/bolt/SimpleMapSerializer.java b/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/codec/bolt/SimpleMapSerializer.java index 6630a5d6f..c2463d9fa 100644 --- a/extension-impl/remoting-bolt/src/main/java/com/alipay/sofa/rpc/code...
1
1
1
[{"id": "G0", "claim": "Forcing UTF-8 in SimpleMapSerializer may break compatibility between new and old client versions when their default encoding types differ; the author was asked whether that was verified.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sofastack__sofa-rpc__73
sofastack/sofa-rpc
73
defect
238c4e3034c6edd968ae9782d852199994b5ddce
fd14c0613d54f779a5102f1a685850966a8575ea
fix select typo
1. fix #72 2. optimize quickstart
diff --git a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/lb/ConsistentHashLoadBalancer.java b/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/lb/ConsistentHashLoadBalancer.java index c74a71783..107ac30a6 100644 --- a/core-impl/client/src/main/java/com/alipay/sofa/rpc/client/lb/ConsistentHashLoad...
1
1
0
[{"id": "G0", "claim": "The example client should not wait with Thread.sleep(5000); it should use consumerConfig.setConnectTimeout(10000) (default is 3000) to wait for slow connections instead.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-rpc__850
sofastack/sofa-rpc
850
defect
aa26f0ca4391402dffdaa8f1e9db2e40db5927bc
dccdccd265ba8a5e31d2a4f715bf0a6c45307376
Integration with apollo
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #<GitHub issue number>. If there is no issue then describe the changes in...
diff --git a/all/pom.xml b/all/pom.xml index c30b0bc0a..729725ab3 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -257,6 +257,11 @@ <version>${project.version}</version> </dependency> <dependency> + <groupId>com.alipay.sofa</groupId> + <artifactId>sofa-rpc-dynamic-apol...
4
2
1
[{"id": "G0", "claim": "The jdk6 test-skipping profile should not be added to the dynamic-apollo module pom.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "When a user of ApolloDynamicConfigManager sets nothing in Apollo Server, the 'RPC_DEFAULT_APOLLO_V...
null
sofastack__sofa-rpc__861
sofastack/sofa-rpc
861
defect
6b7173ab31c7b8c8e6d990992f8bea60cf5ea298
8495799c4f0d8ab01fa7e0108dcdaedc8169369a
feat:support mock
### Motivation: Explain the context, and why you're making that change. To make others understand what is the problem you're trying to solve. ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #858 . If there is no issue then describe the changes introduced by this ...
diff --git a/all/pom.xml b/all/pom.xml index c30b0bc0a..622337575 100644 --- a/all/pom.xml +++ b/all/pom.xml @@ -66,6 +66,8 @@ <bytebuddy.version>1.9.8</bytebuddy.version> <sofa.registry.version>5.2.0</sofa.registry.version> <bolt.swagger.version>1.5.18</bolt.swagger.version> + <httpcl...
1
1
0
[{"id": "G0", "claim": "The local variable `client` (CloseableHttpClient created via HttpClients.createDefault()) is unused in doMockInvoke and should be removed.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofastack__sofa-rpc__967
sofastack/sofa-rpc
967
defect
65faac673246f761bd83044424ae0b0c594e1589
e7085aecf2733ea37cbdec02179452069a997897
Improve log behavior
### Motivation: Improve log behavior ### Modification: Describe the idea and modifications you've done. ### Result: Fixes #966 If there is no issue then describe the changes introduced by this PR.
diff --git a/core/api/src/main/java/com/alipay/sofa/rpc/context/AsyncRuntime.java b/core/api/src/main/java/com/alipay/sofa/rpc/context/AsyncRuntime.java index 31354100f..b6feea350 100644 --- a/core/api/src/main/java/com/alipay/sofa/rpc/context/AsyncRuntime.java +++ b/core/api/src/main/java/com/alipay/sofa/rpc/context/A...
5
5
0
[{"id": "G0", "claim": "Add a space before %throwable in the log4j2 pattern so the stack trace is separated from the message.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The rejection path still creates too many objects — simplify it so no new lambda/o...
null
sofn-xyz__mailing__111
sofn-xyz/mailing
111
defect
546395945c8702a526dc054b4b2259a9583512a4
fddc76a6976d430b704838e70cf09dcc0f418114
prisma backend
Backend part of #109 - adds prisma with postgres - db is hosted on neon.tech (creds in vercel) - adds simple user schema in schema.prisma - adds POST /api/users route with simple test (it's honestly a dumb test and should be replaced with [an integration test](https://www.prisma.io/docs/guides/testing/integratio...
diff --git a/packages/web/README.md b/packages/web/README.md index b12f3e33..b3e76ce2 100644 --- a/packages/web/README.md +++ b/packages/web/README.md @@ -1,34 +1,25 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-n...
1
1
1
[{"id": "G0", "claim": "The README's development-server and prisma-migrate instructions should specify that the commands have to be run from `packages/web`.", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
sofn-xyz__mailing__166
sofn-xyz/mailing
166
defect
035567c7c38957ba6f32228ce7440e80e51e8259
e494139123e8d88a645ecca37031409182379d1f
⚡️ Faster livereload ⚡️
This improves the performance and reliability of previews updating in your browser when you make a change. It refactors livereload server code into it's own module and implements a different strategy for pushing changes to the client ([long-polling](https://en.wikipedia.org/wiki/Push_technology#[4]Long_polling)). Pr...
diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index a94f1c17..7b6a0e85 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -5,9 +5,6 @@ name: Node.js CI on: push: - branches: [main] - pull_request: - branches: [main] jobs: build: @@ -27,4 +24...
4
3
1
[{"id": "G0", "claim": "The TODO note on line 19 of jest.config.ts says a lower testTimeout with per-test jest.setTimeout for long tests could not be got working, so the 30-second timeout stands as a workaround to revisit.", "category": "testing", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id":...
null
sofn-xyz__mailing__236
sofn-xyz/mailing
236
defect
868192c5f2d9992a6656504b95a31fd26b1341f4
60483a5f864bfa19febcba5cab5bb23ab9640ecb
Initial code to handle hooks
## Describe your changes Adding initial code to handle click and open tracking, will need to add calls to analytics providers in the future. ## Issue link #233 ## Checklist before requesting a review - [X] I have performed a self-review of my code - [X] If it is a core feature, I have added thorough tests....
diff --git a/packages/cli/package.json b/packages/cli/package.json index 2e642331..77ba27c7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -31,6 +31,7 @@ "devDependencies": { "@next/eslint-plugin-next": "^12.2.0", "@testing-library/react": "^13.4.0", + "node-mocks-http": "^1.1...
2
2
0
[{"id": "G0", "claim": "Use strict inequality (`!==` instead of `!=`) when comparing `req.method` to \"GET\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Log the caught error with `error(err)` from `log.ts` in the catch block.", "category": "...
null
sofn-xyz__mailing__260
sofn-xyz/mailing
260
defect
a4bfa529882ce668c4f175788b6ee661b0e59c79
6d94b59c635c512b8d189bde89184a52724c779b
Gh 245 safe delivery
## Change description Adds the ability to force delivery of an intercepted send. UI polish: - global 1px translate for active state on buttons/links - fixed height bug in PreviewViewer causing window to scroll test at http://localhost:3883/intercepts/mock <img width="514" alt="Screen Shot 2022-10-16 at 9...
diff --git a/.eslintrc.json b/.eslintrc.json index d73b11eb..7a1cf9af 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -54,6 +54,12 @@ "@typescript-eslint/no-empty-function": [ "error", { "allow": ["arrowFunctions"] } + ], + "react/no-unknown-property": [ + 2, + ...
2
2
1
[{"id": "G0", "claim": "Clicking \"force deliver\" from /intercepts/1665983780167 returns 404 because the controller gets the id out of the URL the wrong way; the author should double check how the id is read from the query object.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introdu...
null
sofn-xyz__mailing__279
sofn-xyz/mailing
279
defect
bd9d04d468c73ac214d6d7cd0b046df19e3930db
afb8e4440f56c4c32e1a43eb9a5833479802b1b7
272 schema for list management
## Describe your changes Before I go to much deeper, bunch of stuff you can do in here: - POST to create a list - POST to add a member to the list - PATCH to change member's subscription status to the list (for unsub) - GET your organization's lists - GET members of a list Also added some stuff I needed for:...
diff --git a/packages/cli/prisma/migrations/20221019231924_create_lists/migration.sql b/packages/cli/prisma/migrations/20221019231924_create_lists/migration.sql new file mode 100644 index 00000000..061243f2 --- /dev/null +++ b/packages/cli/prisma/migrations/20221019231924_create_lists/migration.sql @@ -0,0 +1,14 @@ +--...
4
3
2
[{"id": "G0", "claim": "The Send model perhaps should reference the new List/Member models rather than storing the recipient as a plain 'to' string.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The Member model's status field should be an enum instead ...
null
sofn-xyz__mailing__287
sofn-xyz/mailing
287
defect
eae84b733b732092f5725df58597cc67400a4d3d
5119b57c2556d50ddbb00f8025948bfe63a42b66
284 linter to ensure template components are named correctly
## Describe your changes Adds a linter for checking things about the templates / manifest. The only check here is that the filename matches the function name. This helps ensure #248 will work as expected because that's the only place where we derive template name from function name rather than filename. https:...
diff --git a/.changeset/four-mugs-doubt.md b/.changeset/four-mugs-doubt.md new file mode 100644 index 00000000..243c3295 --- /dev/null +++ b/.changeset/four-mugs-doubt.md @@ -0,0 +1,6 @@ +--- +"mailing": patch +"mailing-core": patch +--- + +add lint step for templates diff --git a/e2e/commands/run_all.rb b/e2e/commands...
1
1
0
[{"id": "G0", "claim": "The added \"paths\" compiler option (with the @/* alias it defines) looks unintentional and should perhaps not be included in the tsconfig.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
sofn-xyz__mailing__339
sofn-xyz/mailing
339
defect
50ffd1a0b250f2be236f857ceda25af78b9beafb
4e2360cc39a02b6115df340b48f8b5a6293e12e4
Replace poller with websockets
## Describe your changes Replaces the livereload polling implementation with sockets, fixes a bug where some file changes don't update the client. ## Issue link N/A ## Checklist before requesting a review - [X] I have performed a self-review of my code - [X] If it is a core feature, I have added thorough te...
diff --git a/package.json b/package.json index e0cfda21..842e5918 100644 --- a/package.json +++ b/package.json @@ -21,10 +21,10 @@ "test": "yarn link:emails; yarn jest", "test:integration": "yarn integration:servers:start \"yarn link:emails; yarn jest -c jest.integration.config.ts $TEST_FLAGS\"", "test:i...
7
5
3
[{"id": "G0", "claim": "The hook should disconnect the socket and unbind its event listeners in a cleanup function, otherwise it may leak memory.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Remove the chatty console logging from the hook.", "cate...
null
sofn-xyz__mailing__359
sofn-xyz/mailing
359
defect
cd0e9052b8baee95ce710d909c3709ba7c30c7d9
da7b224d620a922b807ea5d408968958a7a92cd5
357 previewsender should show a helpful message when your transport is not connected
## Describe your changes ## Issue link ## Checklist before requesting a review - [x] I have performed a self-review of my code - [x] If it is a core feature, I have added thorough tests.
diff --git a/packages/cli/src/components/PreviewSender.tsx b/packages/cli/src/components/PreviewSender.tsx index 65d62b9e..bc34b42a 100644 --- a/packages/cli/src/components/PreviewSender.tsx +++ b/packages/cli/src/components/PreviewSender.tsx @@ -42,16 +42,26 @@ const PreviewSender: React.FC<PreviewSenderProps> = ({ ...
2
2
0
[{"id": "G0", "claim": "Use console.error instead of console.log when logging the response body in the JSON-parse catch block.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Clear the error message when you send again, by clearing it in the send...
null
soft-matter__trackpy__118
soft-matter/trackpy
118
defect
a33956f2289afc1d6b3f61e4fc048e9804b5db8a
bfc54b2882901a3b5ec7276be728af19eae07be5
FIX/ENH: Allow locate to invert float images by assuming normalization=1
`trackpy.locate` expects integer-type images. If it is asked to invert a float-type image (`invert=True`) it will raise. This PR allows it to accept float-type images safely. (For performance reasons, the floats are converted to 8-bit images for the core processing. If you have higher bit depth, your images are probab...
diff --git a/trackpy/feature.py b/trackpy/feature.py index 6101c9b4..81eec9db 100644 --- a/trackpy/feature.py +++ b/trackpy/feature.py @@ -397,7 +397,7 @@ def _numba_refine(raw_image, image, radius, coords, max_iterations, def locate(raw_image, diameter, minmass=100., maxsize=None, separation=None, - noi...
2
2
1
[{"id": "G0", "claim": "The added docstring states that locate applies the default threshold itself, and tacaswell asks where that default is actually taken care of.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Fix the typo \"float imges\" to \"fl...
null
soft-matter__trackpy__145
soft-matter/trackpy
145
defect
fb16efe5fbe02eb4501eeffaddddac502300fa49
d3df77052ccec4bf5e2ad37b949fe6610e006171
ENH: Improve plot_traj
Expose `vmin` and `vmax`, and support superimposition without calibration, which previously raised a `NotImplementedError`.
diff --git a/trackpy/plots.py b/trackpy/plots.py index 782beacb..f7a056f8 100644 --- a/trackpy/plots.py +++ b/trackpy/plots.py @@ -62,8 +62,8 @@ def wrapper(*args, **kwargs): return wrapper @make_axes -def plot_traj(traj, colorby='particle', mpp=1, label=False, superimpose=None, - cmap=None, ax=None): +de...
4
3
1
[{"id": "G0", "claim": "The hard-coded TeX macro '\\textmu m' in the axes labels requires a working LaTeX/usetex setup, which many users (notably on Windows) lack, so the labels should fall back to a form that renders safely without TeX or special fonts.", "category": "correctness", "verdict": "supported", "priority": ...
null
soft-matter__trackpy__162
soft-matter/trackpy
162
defect
0884be2a1099015735f65aba3b4eb6c642f34ca0
b85ccd714b79e0bab39875825ebabcca26f0de69
Feature finding in 3d
See https://github.com/soft-matter/trackpy/issues/161 for motivation - Allows tuple values in for diameter, separation and smoothing_size in locate routine. If an integer is given, it is converted to a tuple with the right dimension. Order is the same as the image dimension order (z,y,x normally)
diff --git a/trackpy/feature.py b/trackpy/feature.py index c6770de4..6b3f3cd2 100644 --- a/trackpy/feature.py +++ b/trackpy/feature.py @@ -39,7 +39,7 @@ def local_maxima(image, radius, percentile=64, margin=None): A smarter value is set by locate(). """ if margin is None: - margin = int(ra...
15
14
6
[{"id": "G0", "claim": "Test how the diameter input behaves (e.g. isinstance/iterable check) instead of `type(diameter) == int`, so lists, tuples, ndarrays and future array-like types are accepted without special-casing each one.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, ...
null
soft-matter__trackpy__17
soft-matter/trackpy
17
defect
bb1c9937503f9cf33ff99f751e3856a58e24477d
9f35127a44afe638c8aeb241f0e945b6df0c8688
Incorporate KDTree code.
This is still a work in progress, but I believe it is close. 45/48 linking-related tests pass in 'KDTree' mode. And none of the tests are broken in 'BTree' mode using the HashTable. The branches have diverged too severely for a merge to be practical, so I typed in @nkeim 's code and attributed him as the author of the...
diff --git a/trackpy/linking.py b/trackpy/linking.py index 6ffa3ebc..7d555036 100644 --- a/trackpy/linking.py +++ b/trackpy/linking.py @@ -21,12 +21,39 @@ from six.moves import zip import numpy as np +from scipy.spatial import cKDTree import pandas as pd import itertools from collections import deque, Iterable ...
2
2
0
[{"id": "G0", "claim": "The new TreeFinder class needs property magic and a clean dirty flag before it is stable enough for tacaswell to build on.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The candidate-assignment logic in assign_candidates should b...
null
soft-matter__trackpy__184
soft-matter/trackpy
184
defect
3a44d0a71c2de7b6649fbd796c2ffae268f1f940
5f1eb04306caec990998e101277b7c2d97f95982
ENH: Configure proper logging.
Closes #183. This PR creates a logger at the module level and uses it where print calls (to be precise, `print_update` calls) were previously used. A function, `handle_logging()`, called at import time, does logging configuration to create the same user experience we have now. But users can turn off or configure loggi...
diff --git a/trackpy/__init__.py b/trackpy/__init__.py index 71f49172..78d50f57 100644 --- a/trackpy/__init__.py +++ b/trackpy/__init__.py @@ -1,8 +1,9 @@ -import logging -FORMAT = "%(name)s.%(funcName)s: %(message)s" -logging.basicConfig(level=logging.WARN, format=FORMAT) - from trackpy.api import * from ._version ...
10
8
1
[{"id": "G0", "claim": "Each module should make its own logger with logging.getLogger(__name__) instead of importing the shared logger from trackpy.utils, so messages report where they were called from and propagate correctly to the top-level trackpy logger.", "category": "maintainability", "verdict": "supported", "pri...
null
soft-matter__trackpy__199
soft-matter/trackpy
199
defect
e57daa8d87e78bf4d2c922d106ad5377a84c7cba
c19fb58ec6ef3bd9bcd5ed3809b905f03ac892c1
List versions
This will be useful for bug reports: ``` >>> import trackpy.diag >>> trackpy.diag.dependencies() {'scipy': '0.15.0', 'pytables': None, 'scikit-image': None, 'matplotlib': '1.4.2', 'pyfftw': 0.9.2, 'numpy': '1.9.1', 'pyyaml': None, 'six': '1.9.0', 'numba': '0.16.0', 'pandas': '0.15.2', 'python': '3.4.2'} ``` Any missi...
diff --git a/doc/api.rst b/doc/api.rst index afa5fc62..28306cc2 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -125,6 +125,15 @@ Utility functions utils.fit_powerlaw utils.print_update +Diagnostic functions +-------------------- + +.. autosummary:: + :toctree: generated/ + + diag.performance_report + d...
2
2
0
[{"id": "G0", "claim": "Use collections.OrderedDict for the dependency versions (assuming Python 2.7+) so the output is more human-readable.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Switch out the __import__ call for importlib in dependencies().", ...
null
soft-matter__trackpy__214
soft-matter/trackpy
214
defect
751f1e515d307c2a6714d113626c2e48e6fda4fc
22ef9dd267cf6239a6129dae37d0212e0b22bfa0
CRITICAL: Prevent pims namespace conflicts
It appears that `pims` now has a `utils` module, and the last line in `api.py` is `from pims import *`. Lots of tests were failing because depending on how `trackpy` was being imported, it was possible to end up with the pims utilities instead of the trackpy ones. I was in the habit of not running the full test suite...
diff --git a/trackpy/api.py b/trackpy/api.py index 98826e36..8e1edf8f 100644 --- a/trackpy/api.py +++ b/trackpy/api.py @@ -1,15 +1,45 @@ from __future__ import (absolute_import, division, print_function, unicode_literals) import six -from .motion import * -from .plots import * -from .linking ...
5
4
2
[{"id": "G0", "claim": "The wildcard `from x import *` imports in trackpy/api.py should be replaced with explicit imports of the needed names.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G1", "claim": "The deprecation warning emitted on every use of the historic p...
null
soft-matter__trackpy__281
soft-matter/trackpy
281
defect
04e67a24bd74798c9820a1584172994459b98ccd
abd0559cb04593a162ab811d0b0ec495d76eedab
FIX Copy the features when trying to link a view
This solves #280: performance was greatly degraded when trying to link a filtered dataframe.
diff --git a/trackpy/linking.py b/trackpy/linking.py index 15ec358e..1f1bdd81 100644 --- a/trackpy/linking.py +++ b/trackpy/linking.py @@ -3,6 +3,7 @@ import six from six.moves import zip, range import logging +from warnings import warn from copy import copy import itertools import functools @@ -546,6 +547,10 @@ ...
4
4
2
[{"id": "G0", "claim": "The is_copy check cannot distinguish views from copies on pandas 0.12/0.13 (and is_copy is undocumented), so the check should be skipped for pandas < 0.16 (e.g. behind a version check).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "c...
null
soft-matter__trackpy__287
soft-matter/trackpy
287
defect
31fac837c9e697a88854fe12030cc3d0ef5b7dfb
46b3d386f95eb19ed7719bfec0fba6ebc7860a4d
BUG: Fix version check error for Pandas release candidates.
Discovered while investigating #282. Apprently `StrictVersion` is… strict.
diff --git a/trackpy/linking.py b/trackpy/linking.py index a1b11baa..9d5a1efe 100644 --- a/trackpy/linking.py +++ b/trackpy/linking.py @@ -8,13 +8,13 @@ import itertools import functools from collections import deque -from distutils.version import StrictVersion import numpy as np from scipy.spatial import cKDTre...
1
1
0
[{"id": "G0", "claim": "The inline pandas version check should be moved to the top of the module and made into a single shared global (`is_recent_pandas`) instead of being repeated inline.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}]
null
soft-matter__trackpy__313
soft-matter/trackpy
313
defect
7bbdd5cf125124ef18c5a2d0b3d759b3f2ad32fb
72b32c16c52fbb37f3af62e4cd5e51f9c7829ec7
Fix pandas017 test
Addresses #295 by testing on Pandas 0.17 and fixing the failure. It also eliminates the top sources of Pandas 0.17 FutureWarnings. I see this as a band-aid for #299 and #282 also. PRs against this one (or following this one) are welcome to fix the rest of the FutureWarnings.
diff --git a/.travis.yml b/.travis.yml index 1cf2640f..f628d7bc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -14,7 +14,7 @@ matrix: - python: "3.4" env: DEPS="numpy=1.9 scipy=0.16 matplotlib=1.4 pandas=0.16 scikit-image=0.11 pyyaml numba=0.20 pytables pyfftw" - python: "3.5" - env: DEPS="numpy=1....
3
2
1
[{"id": "G0", "claim": "The new pandas_sort wrapper should take the sort key as a named second parameter (`pandas_sort(df, by, *args, **kwargs)`) instead of passing `*args` through, because the first argument changed name between `df.sort` (columns) and `df.sort_values` (by).", "category": "design", "verdict": "support...
null
soft-matter__trackpy__336
soft-matter/trackpy
336
defect
c375869bb29c92dc39ba29b0810008c39224cc47
7e8ccdbbc8cc26fd4a7b92822d1942b04f38e4e1
Pair Correlation
static.py contains functions to calculate the "Pair Correlation" function g(r) in 2 and 3 dimensions. pairCorrelation2D and pairCorrelation3D contain an optional parameter "handle_edge," which, if True, will force g(r) to compensate for the reduced volume around particles near the edge, at the cost of run time.
diff --git a/trackpy/static.py b/trackpy/static.py new file mode 100644 index 00000000..419b634b --- /dev/null +++ b/trackpy/static.py @@ -0,0 +1,264 @@ +from scipy.spatial import cKDTree +import random +import numpy as np +from warnings import warn + + +def pairCorrelation2D(feat, cutoff, fraction = 1., dr = .5, p_ind...
13
10
3
[{"id": "G0", "claim": "Travis fails on the pandas 0.12 build due to an indexing issue, and a .loc should probably be an .iloc.", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "Function names should not contain upper case (e.g. pair_correlation_2d) an...
null
soft-matter__trackpy__337
soft-matter/trackpy
337
defect
5f057b3519657af5a593571f5c100e8360137dd5
9dc2a0e72d24522573057cfe6dbd1165a6bbc389
MSD computation with FFT
See this https://github.com/hadim/public_notebooks/blob/master/quick_msd_calculations/quick_msd_calculations.ipynb and #335
diff --git a/.travis.yml b/.travis.yml index 211187bc..c40cf7fa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ matrix: include: # "Legacy" environments: oldest supported versions, without and with numba - python: "2.7" - env: DEPS="numpy=1.8.2 scipy=0.12.0 matplotlib=1.3 pillow<3 pandas=0....
9
6
4
[{"id": "G0", "claim": "The FFT-based msd implementation offers no way to compute N, which emsd requires, so the detail mode cannot be served on the FFT path.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The existing msd() implementation is clearl...
null
soft-matter__trackpy__377
soft-matter/trackpy
377
defect
add5f4c3e4142700d3627598ecc706d309a7d96e
6b4ca710bb3eda117edaf135a34ec79094edaac4
FIX Major bugfix in python refinement
This removes any discrepancy between the python and numba engines: - the neighborhood should be calculated from rounded coordinates - the ndimage interpolation makes the code different from the numba engine and appears to add nothing in my tests Fixes #376
diff --git a/doc/releases/v0.3.1.txt b/doc/releases/v0.3.1.txt index 14344ff7..cbee62f4 100644 --- a/doc/releases/v0.3.1.txt +++ b/doc/releases/v0.3.1.txt @@ -16,6 +16,8 @@ Enhancements Bug Fixes ~~~~~~~~~ +- Bug in the python refinement code was solved: feature finding with `engine='python'` is now more accurate. ...
6
5
2
[{"id": "G0", "claim": "The pure python refine implementation could use some streamlining, which the author defers to later work.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The positional-error bounds the fix achieves should be captured by a...
null
soft-matter__trackpy__400
soft-matter/trackpy
400
defect
c309b83296c720b8b9fd9633259c2b9ea6740eeb
c0c2b1a351cdbbd69fa769dbf7d1d667c3398f38
Locate refactor: preprocessing and filtering
This is a start to making feature-finding more modular (#257). API changes: - minmass defaults to 0, not to 100 (integer images) or 1. (float images) (solves obscure behaviour such as in #355) - filter_before is removed, as it does not increase performance #141.
diff --git a/trackpy/feature.py b/trackpy/feature.py index 477396b7..5e5cc22f 100644 --- a/trackpy/feature.py +++ b/trackpy/feature.py @@ -9,7 +9,8 @@ from scipy import ndimage from pandas import DataFrame -from .preprocessing import bandpass, scale_to_gamut, scalefactor_to_gamut +from .preprocessing import (bandpa...
3
3
2
[{"id": "G0", "claim": "The default threshold for float images in locate should be 1/255 instead of 1/256.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "bandpass should threshold with >= instead of >, so that a value equal to the threshold is kept ...
null
soft-matter__trackpy__445
soft-matter/trackpy
445
defect
81c0d38964f8e55f84170f8c5c9ca7a8648503c6
d5b1a9c8fc2cae42b834d847d6baf789cf64e767
Partial linking
Following up on our offline communication, this implements two functions that enable the partial linking of a DataFrame. This is split in two steps: first, linking is done on a range of frames, either through the convenience function `link_partial`, or through other means. Then, some administration needs to be done ...
diff --git a/doc/api.rst b/doc/api.rst index 76d00553..4dbbdb4f 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -47,6 +47,7 @@ Linking link link_iter link_df_iter + link_partial :func:`~trackpy.linking.link` and :func:`~trackpy.linking.link_df_iter` run @@ -56,6 +57,9 @@ DataFrame containing data f...
8
5
0
[{"id": "G0", "claim": "The first line of the link_partial docstring should distinguish this function from the other linking functions.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The closing triple quotes of the docstring should be placed on a...
null
soft-matter__trackpy__447
soft-matter/trackpy
447
defect
e468027d7bb6e96cbb9f2048530cbc6e8c7172d8
045ca6aa0758d289c08fd1ed0c2c7540ac94e559
REF: Compute drift
This simplifies the `compute_drift` function, enhancing its performance by about a factor 2 and circumventing the bug discussed in #446.
diff --git a/trackpy/motion.py b/trackpy/motion.py index 86456d31..0c23055a 100644 --- a/trackpy/motion.py +++ b/trackpy/motion.py @@ -7,7 +7,7 @@ import warnings from warnings import warn -from .utils import pandas_sort +from .utils import pandas_sort, pandas_rolling, guess_pos_columns def msd(traj, mpp, fps,...
1
1
0
[{"id": "G0", "claim": "The docstrings of _pandas_rolling_pre_018 and _pandas_rolling_since_018 need to be updated (they still describe sort functions).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
soft-matter__trackpy__466
soft-matter/trackpy
466
defect
bcb3ca2a174a8c167d84ea24f65948ec3932eddc
905b3bfd1cb0432f7a0de7df64ab4b23bcf9a31d
Implement a user-friendly refine function making locate more modular
This continues the work discussed in #257. `trackpy.refine_com` now returns a `DataFrame` with clearly labeled columns. `locate` is now rebased on this, and as it does not require the to-dataframe conversion any more, this simplifies `locate` a bit. There might be some performance loss in locate, although I expect i...
diff --git a/trackpy/feature.py b/trackpy/feature.py index a7207090..4e8094c5 100644 --- a/trackpy/feature.py +++ b/trackpy/feature.py @@ -11,9 +11,9 @@ from .preprocessing import (bandpass, convert_to_int, invert_image, scalefactor_to_gamut) from .utils import (record_meta, validate_tupl...
5
4
1
[{"id": "G0", "claim": "The deprecation warning on trackpy.feature.refine should say that it is deprecated, not that it will be deprecated.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The locate warning about the mass computation change and the...
null
soft-matter__trackpy__489
soft-matter/trackpy
489
defect
8e2448dfc5980892f772fbcef732c4b7c42028b8
fe51b13bc67a1ff2fc8e4508a194c3a818b676fb
FIX: Adaptive search bug that could trigger "Too many forward candidates"
This partially addresses #487. When many iterations of adaptive search are required to reduce a subnet to solvable size, there is a "leak" that adds superfluous null particles to the list of forward candidates. This PR fixes that bug, but performance in this case is still much worse than the adaptive search implementat...
diff --git a/trackpy/linking/find_link.py b/trackpy/linking/find_link.py index 8a767066..5acfaed8 100644 --- a/trackpy/linking/find_link.py +++ b/trackpy/linking/find_link.py @@ -475,6 +475,9 @@ def assign_links(self): else: new_cands = set() + for sp in source_set: + ...
4
3
0
[{"id": "G0", "claim": "Null candidates should probably be added before the subnetlinker (in assign_links) rather than inside each subnetlinker.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a comment making clear that the pruning in split_subnet remo...
null
soft-matter__trackpy__735
soft-matter/trackpy
735
defect
05a643992b8f1dd9b18d40a04ac49dfb1775901c
f2f5d6f96f02094f7d36d3c8ea4bc86b9e8747bf
Fix for issue #734
Change traj.set_index call to avoid Pandas error: 'ValueError: cannot reindex on an axis with duplicate labels'.
diff --git a/trackpy/motion.py b/trackpy/motion.py index 7047b436..b1c6f2f8 100644 --- a/trackpy/motion.py +++ b/trackpy/motion.py @@ -308,7 +308,7 @@ def subtract_drift(traj, drift=None, inplace=False): drift = compute_drift(traj) if not inplace: traj = traj.copy() - traj.set_index('frame', i...
2
1
1
[{"id": "G0", "claim": "The changed subtract_drift should work for inputs without a 'particle' column too, and the unit tests should cover that case (they all use inputs with the 'particle' column).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Aft...
null