Add a way for programs to get a Dataset without a transaction

Description

Currenty, for example, a worker can only get a dataset inside Transactional.execute(). That means that even for non-transactional datasets such as FileSets, a transaction is needed. We need to add a way to instantiate the dataset outside of a transaction.

Release Notes

Allows programs to access datasets without a transaction.

Activity

Show:

Andreas Neumann October 17, 2016 at 6:33 PM

Andreas Neumann October 13, 2016 at 9:37 PM

This is addressed as part of CDAP-7193.

Andreas Neumann September 21, 2016 at 12:59 AM

Design

This involves two tasks:

  • all program contexts implement getDataset() and its variants (DatasetContext)

  • all system datasets methods that require a transaction validate that they are called within a transaction and throw a meaningful exception if not.

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Affects versions

Components

Fix versions

Priority

Created September 20, 2016 at 11:03 PM
Updated November 19, 2016 at 3:06 AM
Resolved October 17, 2016 at 6:33 PM