title: magento 2 catalog_product_save_before unable to save product but keeps loading
body: <p>I'm trying to save the product in the observer of event <code>catalog_product_save_before</code>, but somehow the admin panel is just loading, it's not saving the product.</p>
  <p>Can anyone please suggest the solution for this?</p>
  <pre class="lang-php prettyprint-override"><code>    /**
       * Execute observer
       *
       * @param \Magento\Framework\Event\Observer $observer
       * @return void
       */
      public function execute(
          \Magento\Framework\Event\Observer $observer
      ) {
          $_product = $observer-&gt;getProduct(); // you will get product object
          $_sku = $_product-&gt;getSku(); // for sku
          $_product-&gt;setSku(&quot;testNew1&quot;);
          $_product-&gt;save();
      }
  </code></pre>