google-nomulus/docs
Lai Jiang 139a84bef6 Add logging for nameserver deletion (#1663)
The main purpose of this PR is to help debug b/234189023, where a
registrar reported that in sandbox they observed seemingly successful EPP
update responses to delete NS records, which are not actually deleted after
the commands executed.

To actually load the persisted domain resource after an update would
require us to execute another transaction immediately after the update
transaction and that can only be achieved outside the flow (i. e. in
FlowRunner or EppController) and we need to test for the type of flows
before logging, which seems unnecessarily complex.

For now we are just adding logs inside the update transaction itself to
validate that:

1. The NS records to delete are as expected.
2. The Current NS records are as expected.
3. The new NS records to persist are as expected.

The EPP success reply is the default reply when no errors are thrown in
a transaction. If we see a success reply (which means that the
transaction finished successfully) and expected logs from the transaction, the
only explanation could be that somewhere in the ORM layer the java
representation of what the entity is is different from what is being
presented to the database. I think that signals a much bigger and
fundamental problem, which is quite unlikely given how isolated the
issue under consideration is.

In any case we would like to add the logging functionality in sandbox and ask
the registrar to report again when they see similar issues.

Also made some typo and linting fixes.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/google/nomulus/1663)
<!-- Reviewable:end -->
2022-06-09 16:56:58 -04:00
..
gradle/dependency-locks Update bigdataoss:util dependency (#1654) 2022-06-06 13:28:49 -04:00
operational-procedures Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00
src Fix some low-hanging code quality issue fruits (#1047) 2021-04-01 18:04:21 -04:00
admin-tool.md Remove files that are not longer used for create/update premium list (#1288) 2021-08-18 14:04:57 -04:00
architecture.md Delete remnants of registrar-level credits 2018-06-27 15:28:52 -04:00
authentication-framework.md Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00
build.gradle Add logging for nameserver deletion (#1663) 2022-06-09 16:56:58 -04:00
code-structure.md Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00
coding-faq.md Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
configuration.md Added info on problematic max-instances param (#1639) 2022-05-19 11:51:27 -04:00
developing.md Add link to final ReferenceUnion migration commit in Developing doc 2016-11-15 15:15:55 -05:00
first-steps-tutorial.md Update user-facing documentation (#662) 2020-08-17 14:46:32 -04:00
flows.md Check PAK is present on billing domain flows (#1605) 2022-04-29 14:30:24 -04:00
gradle.md Refactor to be more in line with a standard Gradle project structure 2019-06-13 09:41:11 -04:00
install.md Add Gradle tasks to stage BEAM pipelines (#1031) 2021-03-24 18:47:14 -04:00
operational-procedures.md Clarify diff display of MutatingCommand 2017-10-04 16:16:45 -04:00
proxy-setup.md Update terraform files and instructions (#1402) 2021-10-29 09:10:23 -04:00
rdap.md Fix cut-and-paste error in RDAP documentation 2018-03-19 18:31:15 -04:00
registrar-faq.md Rename whitelist -> allow list (#635) 2020-06-18 18:36:05 -04:00