adam-markovics commented on a change in pull request #1107:
URL: https://github.com/apache/nifi-minifi-cpp/pull/1107#discussion_r677390804



##########
File path: extensions/windows-event-log/tests/BookmarkTests.cpp
##########
@@ -40,7 +40,10 @@ std::unique_ptr<Bookmark> createBookmark(TestPlan &test_plan,
                                          const utils::Identifier &uuid = 
IdGenerator::getIdGenerator()->generate()) {
   const auto state_manager = 
test_plan.getStateManagerProvider()->getCoreComponentStateManager(uuid);
   const auto logger = test_plan.getLogger();
-  return utils::make_unique<Bookmark>(channel, L"*", "", uuid, false, 
state_manager, logger);
+  state_manager->beginTransaction();
+  auto bookmark = utils::make_unique<Bookmark>(channel, L"*", "", uuid, false, 
state_manager, logger);
+  state_manager->commit();

Review comment:
       A conclusion was made that state changes would be autocommit (SQL-like) 
when outside of a transaction (such as in onTrigger). A transaction would begin 
and at the end of the call it would finish with commit. If users want to, they 
can still begin and commit/rollback a transaction manually if they wish so.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to