Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use the CDAP Transaction Service HTTP RESTful API Microservices to access selected internals of the CDAP Transaction Service that are exposed via endpoints.

...

All methods or endpoints described in this API have a base URL (typically http://<host>:11015 or https://<host>:10443) that precedes the resource identifier, as described in the RESTful API Conventions. These methods return a status code, as listed in the RESTful API Status Codes.

Number of Invalid Transactions

To retrieve the number of invalid transactions in the system, issue an HTTP GET request:

...

Code Block
{ "size": <size> }

Truncate Invalid Transactions by Time

To truncate invalid transactions before a specific time, issue an HTTP POST request:

...

Code Block
{ "time" : <timestamp-ms> }

Note: Since improperly removing invalid transactions

...

might result in data inconsistency, please refer to Transaction Service Maintenance for proper usage.