-
Notifications
You must be signed in to change notification settings - Fork 0
Comparing changes
Open a pull request
base repository: mreiferson/go-nsq
base: master
head repository: nsqio/go-nsq
compare: master
- 16 commits
- 12 files changed
- 7 contributors
Commits on Oct 25, 2021
-
consumer: lower old RDYs first, then assign to new connection
Currently when a consumer is connected to a new NSQD, the connection is added to the pool of connections and then a loop iterates over all of them, rebalancing the RDY values. The iteration order of a map is random, thus it can happen that the consumer tries to assign the RDY value to the new connection, before decreasing the existing ones. This leads to a RDY of 0 being assigned. This issue is even more pronounced when there are only two connections: initially all the RDY are assigned the existing connection, and when a new NSQD is connected, the old one needs to be cut in half and the half just taken away gets assigned to the new connection. If map iteration happens in reverse order - starting with the new connection - it will get assigned 0 RDY and then the old connection gets cut in half. The end result is blocked communication on the new NSQD instance until a new round of rebalance is triggered. This issue may be less relevant in long running processes, but it is very annoying in tests where we're adding and remocing NSQD instances and the test hangs from time to time due to a flaky RDY allocation. The issue is fixed by fist iterating over all the existing connections and rebalancing them, and only at the very end calling maybeUpdateRDY on the new NSQD instance.
Configuration menu - View commit details
-
Copy full SHA for 5f35ce8 - Browse repository at this point
Copy the full SHA 5f35ce8View commit details
Commits on Nov 28, 2021
-
Merge pull request nsqio#341 from karalabe/fix-rdy-distribution
consumer: lower old RDYs first, then assign to new connection
Configuration menu - View commit details
-
Copy full SHA for 827b836 - Browse repository at this point
Copy the full SHA 827b836View commit details
Commits on Aug 1, 2022
-
producer: handle case of no transactions in popTransaction()
This corner case generally should not happen, but a nsqd bug or strange network condition could possibly send erroneous bytes that are interpreted as a response. The Producer should be robust, and not panic the whole process.
Configuration menu - View commit details
-
Copy full SHA for 0056705 - Browse repository at this point
Copy the full SHA 0056705View commit details -
Merge pull request nsqio#346 from ploxiln/pop_no_transaction
producer: handle case of no transactions in popTransaction()
Configuration menu - View commit details
-
Copy full SHA for 0e8d7a7 - Browse repository at this point
Copy the full SHA 0e8d7a7View commit details
Commits on Mar 6, 2023
-
- Add MaxMsgSize to configuration mimicking the nsqd cofiguration key. It defaults to 1048576 as the nsqd config -- source: https://github.com/nsqio/nsq/blob/a4939964f6715edd27a6904b87c2f9eb6a45e749/nsqd/options.go#L130 - Pass MaxMsgSize to ReadResponse via its caller, ReadUnpackedResponse. Check msgSize does not exceed the maximum in ReadResponse. This reduces the risk of attempting to read arbitrary (non-nsq) responses. - Generate custom error if msgSize is the result of deserializing the first 4 bytes of an HTTP response (1213486160) to facilitate troublehooting. Default maxMsgSize to 0 for no limit Add unexpected HTTP response test Fix indentation
Configuration menu - View commit details
-
Copy full SHA for dc8315d - Browse repository at this point
Copy the full SHA dc8315dView commit details
Commits on May 30, 2023
-
Merge pull request nsqio#353 from ibice/limit-read-message-size
Limit read message size
Configuration menu - View commit details
-
Copy full SHA for c647fa6 - Browse repository at this point
Copy the full SHA c647fa6View commit details
Commits on Jul 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d9c722e - Browse repository at this point
Copy the full SHA d9c722eView commit details
Commits on Jul 16, 2023
-
Merge pull request nsqio#356 from testwill/time
chore: use time.Since instead of time.Now().Sub
Configuration menu - View commit details
-
Copy full SHA for 14c9d1d - Browse repository at this point
Copy the full SHA 14c9d1dView commit details
Commits on Sep 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9b091e0 - Browse repository at this point
Copy the full SHA 9b091e0View commit details
Commits on Sep 18, 2023
-
Merge pull request nsqio#358 from jehiah/dependencies_358
go.mod: upgrade snappy => v0.0.4; upgrade go.mod version 1.17+
Configuration menu - View commit details
-
Copy full SHA for c2c3842 - Browse repository at this point
Copy the full SHA c2c3842View commit details
Commits on May 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 9982462 - Browse repository at this point
Copy the full SHA 9982462View commit details
Commits on Jul 30, 2024
-
style: Only do code optimization
侯尧 committedJul 30, 2024 Configuration menu - View commit details
-
Copy full SHA for 4007ceb - Browse repository at this point
Copy the full SHA 4007cebView commit details
Commits on Sep 1, 2024
-
Merge pull request nsqio#369 from qaqhy/optimize_code
style: Only do code optimization
Configuration menu - View commit details
-
Copy full SHA for 8098697 - Browse repository at this point
Copy the full SHA 8098697View commit details
Commits on Jan 27, 2025
-
Merge pull request nsqio#312 from jehiah/topology_hints_312
Set topology region+zone and send in IDENTIFY msg
Configuration menu - View commit details
-
Copy full SHA for 796abbc - Browse repository at this point
Copy the full SHA 796abbcView commit details
Commits on Mar 13, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d545341 - Browse repository at this point
Copy the full SHA d545341View commit details -
Configuration menu - View commit details
-
Copy full SHA for 326de60 - Browse repository at this point
Copy the full SHA 326de60View commit details
There are no files selected for viewing