Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Service Bus] deadletter bug fixes and backup message settlement for track 1 #8406

Conversation

HarshaNalluru
Copy link
Member

@HarshaNalluru HarshaNalluru commented Apr 16, 2020

@chradek
Copy link
Contributor

chradek commented Apr 16, 2020

The changes look good, but is it possible to port some of the tests from track2 over as well?

@HarshaNalluru
Copy link
Member Author

The changes look good, but is it possible to port some of the tests from track2 over as well?

Porting all of the tests.. ongoing.

@HarshaNalluru
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@HarshaNalluru
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@HarshaNalluru
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

operation: DispositionStatus,
options?: DispositionStatusOptions
): Promise<void> {
const dispositionType = getDispositionType(operation);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we really need this helper method? Can we not include the disposition type as an input parameter?
The helper opens up the possibility of the return type being undefined and then we are forced to handle that with using the !

Side note: In Track 2, I want to investigate why we need both enums DispositionStatus and DispositionType.

Copy link
Member Author

Choose a reason for hiding this comment

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

Delivery object expects DispositionType whereas updateDispositionStatus expects DispositionStatus.

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually, DispositionType is getting used only in error messages or in if statements :)

Anyway, my feedback here was to avoid having the getDispositionType helper and plumb through the DispositionType just like you are doing with DispositionStatus for the reasons I mentioned above. But I dont feel too strongly about it anymore

Copy link
Member Author

Choose a reason for hiding this comment

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

Sure, I totally agree.

Also unrelated.. I just realized that I should also verify the message lock renewal along with backup settlement(and add some tests).

Co-Authored-By: Ramya Rao <ramya.rao.a@outlook.com>
@HarshaNalluru
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

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

Just one last suggested edit on the comments, otherwise looks good

Co-Authored-By: Ramya Rao <ramya.rao.a@outlook.com>
sdk/servicebus/service-bus/CHANGELOG.md Outdated Show resolved Hide resolved
senderType: TestClientType,
receiverType: TestClientType
): Promise<void> {
const useSessions = receiverType > 5 && receiverType < 12 ? true : false;
Copy link
Contributor

Choose a reason for hiding this comment

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

Well this check scares me, and actually looks like a case where a bit flag could be useful. Since that might mean making a lot of changes to this PR, could you add a comment to TestClientType that states that tests depend on this enum not changing?

Copy link
Member Author

Choose a reason for hiding this comment

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

I will add a comment.

Co-Authored-By: chradek <51000525+chradek@users.noreply.github.com>
Copy link
Contributor

@chradek chradek left a comment

Choose a reason for hiding this comment

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

Approved pending comment added to TestClientType!

@HarshaNalluru
Copy link
Member Author

/azp run js - servicebus - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

None yet

3 participants