-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-4201] Fix error validation in deliver
This patch fixes several issues in error validation of deliver: 1. EOF is now caught as normal hangup of gRPC connection, hence exit without returning error. 2. Error of inverse seek position was not caught, which results in undesired behavior. Now it returns BAD_REQUEST status. 3. Some errors were not logged. 4. Explicit logging level checks are removed, i.e. `isEnabledFor` This was intended to improve the performance by reducing memory allocations caused by passing in string arguments. However, the performance gain is not significant (~ns) and we prefer cleaner code. On the other hand, common logic in tests are extracted into a reusable function. Change-Id: Ib2ff52cd1d9ef767f0918728084ec31c075cc38a Signed-off-by: Jay Guo <guojiannan1101@gmail.com>
- Loading branch information
Showing
2 changed files
with
80 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters