The Bible speaks at times where Jesus didn’t know certain things. He had to learn and grow. I believe this is because He had a finite human soul. Yes He was also Divine and therefore, had a Divine soul as well. This is what He committed into the hands of the Father at His death. His human soul was destroyed as He received the penalty for our sins - death. The cup of God’s wrath that He would drink from contained both the penal wrath of God and the disciplinary wrath of God. For Christ learned obedience through what He suffered. He swallowed up all the penal wrath of God for everybody. He told James and John that they would drink from His cup. This is the cup we all drink from - disciplinary wrath - until we receive our full salvation. The penal wrath of God has been swallowed up. Death (the penalty for sin) is no more.